Git Product home page Git Product logo

avmaisak / lfs_book Goto Github PK

View Code? Open in Web Editor NEW
44.0 7.0 6.0 16.82 MB

Перевод книги Linux From Scratch на русский язык

License: MIT License

Makefile 0.17% Shell 1.30% Roff 0.06% PHP 0.14% XSLT 79.18% HTML 11.54% CSS 0.59% Ruby 0.11% Python 0.10% Perl 0.03% JavaScript 6.63% NewLisp 0.04% SystemVerilog 0.05% Raku 0.04%
linux lfs linuxfromscratch tutorial book lfsbook lfs-book

lfs_book's Introduction

LFS Book README

В этом документе содержится информация о том, как выполнить преобразование книги из XML формата в другой формат (например, HTML, PDF, PS и TXT). Для начала, если вы ещё этого не сделали, пожалуйста, откройте и прочитайте информацию, представленную в файле INSTALL, чтобы установить необходимое программное обеспечение. Если вы уже выполнили все шаги в файле INSTALL, ознакомьтесь с примерами того, как выполнить преобразование файлов в другие форматы.

Во всех примерах необходимо указание аргумента REV=systemd, если требуется сборка книги редакции systemd.

XML в XHTML:
-------------
make BASEDIR=/path/to/output/location


XML в одностраничный XHTML (nochunks):
------------------------------------
make BASEDIR=/path/to/output/location nochunks


XML в TXT
----------
Следуйте инструкциям для nochunks и затем введите:
lynx -dump /path/to/nochunks > /path/to/output


XML в PDF:
-----------
make BASEDIR=/path/to/output/location pdf

lfs_book's People

Contributors

avmaisak avatar lfs-ru avatar mfilippov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lfs_book's Issues

неправильное сокращение

SYSTEMV -- сокращение неправильное. Систему инициализации "SysV init" нельзя сокращать по примеру "Systemd". Неправильно выкидывать слово "init" из названия, так не принято.
"initialization level" или "уровни исполнения" являются краеугольным элементом этой системы инициализации. Архитектура "Systemd" совсем другая, когда инженеры RedHat создавали "Systemd" они просто хотели сделать копию систему инициализации, которая была на OS Windows. А "SysV init" -- это другое, это типичный Юниксовый стиль системы инициализации.

Frequently Asked Questions

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

3.1. Введение. Некорректные ссылки на wget-list и md5sums

Ошибки при сборке

Когда я использую make, чтобы собрать книгу, появляются ошибки и сборка прерывается.
Все пакеты, которые необходимы для сборки, что описаны в INSTALL файле получены через apt.

Terminal:

andrey@desktop:~/LFS_Book$ make BASEDIR=build
Creating and cleaning /home/andrey/tmp
Processing bootscripts...
Adjusting for revision sysv...
chapter03/packages.xml:90: parser error : Entity 'bzip2-version' not defined
Bzip2 (&bzip2-version;) - &bzip2-size;:
^
chapter03/packages.xml:90: parser error : Entity 'bzip2-size' not defined
Bzip2 (&bzip2-version;) - &bzip2-size;:
^
chapter03/packages.xml:93: parser error : Entity 'bzip2-url' not defined
Ссылка на загрузку: </pa
^
chapter03/packages.xml:94: parser error : Entity 'bzip2-md5' not defined
Контрольная сумма MD5: &bzip2-md5;</liter
^
chapter03/patches.xml:37: parser error : Entity 'bzip2-version' not defined
Ссылка на загрузку: <ulink url="&patches-root;&bzip2-docs-patch;
^
chapter05/bzip2.xml:13: parser error : Entity 'bzip2-version' not defined
&bzip2-version;
^
chapter05/bzip2.xml:14: parser error : Entity 'bzip2-url' not defined

&bzip2-url;
^
chapter05/bzip2.xml:17: parser error : Entity 'bzip2-version' not defined

<title>Bzip2-&bzip2-version;</title> ^ chapter06/bzip2.xml:13: parser error : Entity 'bzip2-version' not defined &bzip2-version; ^ chapter06/bzip2.xml:14: parser error : Entity 'bzip2-url' not defined &bzip2-url; ^ chapter06/bzip2.xml:17: parser error : Entity 'bzip2-version' not defined <title>Bzip2-&bzip2-version;</title> ^ Entity: line 1: parser error : Entity 'bzip2-version' not defined bzip2-&bzip2-version;-install_docs-1.patch ^ chapter06/bzip2.xml:45: parser error : Entity 'bzip2-docs-patch' failed to parse patch -Np1 -i ../&bzip2-docs-patch;/usr/share/doc/bzip2-&bzip2-version; ^ chapter05/bzip2.xml:29: element include: XInclude error : could not load chapter06/bzip2.xml, and no fallback was found chapter06/gawk.xml:89: parser error : Opening and ending tag mismatch: sect2 line 71 and segmentedlist ^ chapter06/gawk.xml:129: parser error : Opening and ending tag mismatch: sect1 line 8 and sect2 ^ chapter06/gawk.xml:131: parser error : Extra content at the end of the document ^ chapter05/gawk.xml:29: element include: XInclude error : could not load chapter06/gawk.xml, and no fallback was found chapter06/bzip2.xml:13: parser error : Entity 'bzip2-version' not defined &bzip2-version; ^ chapter06/bzip2.xml:14: parser error : Entity 'bzip2-url' not defined &bzip2-url; ^ chapter06/bzip2.xml:17: parser error : Entity 'bzip2-version' not defined <title>Bzip2-&bzip2-version;</title> ^ Entity: line 1: parser error : Entity 'bzip2-version' not defined bzip2-&bzip2-version;-install_docs-1.patch ^ chapter06/bzip2.xml:45: parser error : Entity 'bzip2-docs-patch' failed to parse patch -Np1 -i ../&bzip2-docs-patch;/usr/share/doc/bzip2-&bzip2-version; ^ chapter06/chapter06.xml:35: element include: XInclude error : could not load chapter06/bzip2.xml, and no fallback was found chapter06/gawk.xml:89: parser error : Opening and ending tag mismatch: sect2 line 71 and segmentedlist ^ chapter06/gawk.xml:129: parser error : Opening and ending tag mismatch: sect1 line 8 and sect2 ^ chapter06/gawk.xml:131: parser error : Extra content at the end of the document ^ chapter06/chapter06.xml:70: element include: XInclude error : could not load chapter06/gawk.xml, and no fallback was found chapter06/systemd.xml:55: parser error : Entity 'systemd-stable' not defined nput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;-&systemd-stable; ^ Validating the book... /home/andrey/tmp/lfs-html2.xml:5191: element sect2: validity error : Element sect2 content does not follow the DTD, expecting (sect2info? , (title , subtitle? , titleabbrev?) , (toc | lot | index | glossary | bibliography)* , (((calloutlist | glosslist | bibliolist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | equation | example | figure | table | msgset | procedure | sidebar | qandaset | task | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)+ , (refentry* | sect3* | simplesect*)) | refentry+ | sect3+ | simplesect+) , (toc | lot | index | glossary | bibliography)*), got (title xi:include segmentedlist ) /home/andrey/tmp/lfs-html2.xml:5194: element include: validity error : No declaration for element include /home/andrey/tmp/lfs-html2.xml:5194: element include: validity error : No declaration for attribute href of element include /home/andrey/tmp/lfs-html2.xml:5194: element include: validity error : No declaration for attribute xpointer of element include /home/andrey/tmp/lfs-html2.xml:5194: element include: validity error : No declaration for attribute xmlns:xi of element include /home/andrey/tmp/lfs-html2.xml:5524: element sect2: validity error : Element sect2 content does not follow the DTD, expecting (sect2info? , (title , subtitle? , titleabbrev?) , (toc | lot | index | glossary | bibliography)* , (((calloutlist | glosslist | bibliolist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | equation | example | figure | table | msgset | procedure | sidebar | qandaset | task | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)+ , (refentry* | sect3* | simplesect*)) | refentry+ | sect3+ | simplesect+) , (toc | lot | index | glossary | bibliography)*), got (title xi:include segmentedlist ) /home/andrey/tmp/lfs-html2.xml:5527: element include: validity error : No declaration for element include /home/andrey/tmp/lfs-html2.xml:5527: element include: validity error : No declaration for attribute href of element include /home/andrey/tmp/lfs-html2.xml:5527: element include: validity error : No declaration for attribute xpointer of element include /home/andrey/tmp/lfs-html2.xml:5527: element include: validity error : No declaration for attribute xmlns:xi of element include /home/andrey/tmp/lfs-html2.xml:6413: element chapter: validity error : Element chapter content does not follow the DTD, expecting (beginpage? , chapterinfo? , (title , subtitle? , titleabbrev?) , (toc | lot | index | glossary | bibliography)* , tocchap? , (((calloutlist | glosslist | bibliolist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | equation | example | figure | table | msgset | procedure | sidebar | qandaset | task | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)+ , (sect1* | refentry* | simplesect* | section*)) | sect1+ | refentry+ | simplesect+ | section+) , (toc | lot | index | glossary | bibliography)*), got (title sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 xi:include sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 xi:include sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 sect1 ) /home/andrey/tmp/lfs-html2.xml:10573: element include: validity error : No declaration for element include /home/andrey/tmp/lfs-html2.xml:10573: element include: validity error : No declaration for attribute href of element include /home/andrey/tmp/lfs-html2.xml:10573: element include: validity error : No declaration for attribute xmlns:xi of element include /home/andrey/tmp/lfs-html2.xml:17188: element include: validity error : No declaration for element include /home/andrey/tmp/lfs-html2.xml:17188: element include: validity error : No declaration for attribute href of element include /home/andrey/tmp/lfs-html2.xml:17188: element include: validity error : No declaration for attribute xmlns:xi of element include /home/andrey/tmp/lfs-html2.xml:5225: element xref: validity error : IDREF attribute linkend references an unknown ID "contents-bzip2" /home/andrey/tmp/lfs-html2.xml:5566: element xref: validity error : IDREF attribute linkend references an unknown ID "contents-gawk" Document /home/andrey/tmp/lfs-html2.xml does not validate make: *** [Makefile:130: validate] Ошибка 3

Собираю на Lubuntu 19.10:
andrey@desktop:~/LFS_Book$ uname -a
Linux desktop 5.3.0-45-generic #37-Ubuntu SMP Thu Mar 26 20:41:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Оригинальная книга была нормально собрана:

andrey@desktop:~/BOOK$ make
Creating and cleaning /home/andrey/tmp
Processing bootscripts...
Adjusting for revision sysv...
Validating the book...
Validation complete.
Generating profiled XML for XHTML...
Generating chunked XHTML files at ~/lfs-book/ ...
Copying CSS code and images...
Running Tidy and obfuscate.sh...
make[1]: Цель «wget-list» не требует выполнения команд.
make[1]: Цель «md5sums» не требует выполнения команд.

README и Markdown

Возможно, стоит переименовать README в README.md и внести небольшие стилистические правки? Это даёт возможность слегка украсить описание проекта.

Может и не стоит - не знаю, как у вас задумано :)

Требуется обновление файла wget-list

Требуется обновление файла wget-list, т.к. возникли следующие ошибки при скачивании пакетов для LFS:

  1. Вместо https://linuxfromscratch.org.ru/lfs/downloads/development/lfs-bootscripts-20170626.tar.bz2
    Надо https://linuxfromscratch.org.ru/lfs/downloads/development/lfs-bootscripts-20180820.tar.bz2

  2. Нет файла по ссылке: https://linuxfromscratch.org.ru/patches/lfs/development/sysvinit-2.93-consolidated-1.patch
    Можно скачать отсюда: http://www.linuxfromscratch.org/patches/downloads/sysvinit/sysvinit-2.93-consolidated-1.patch

Также требуется обновление файла md5sums

Cтатус перевода

  • Groff (только информация о том, что входит в пакет)

  • GRUB (только информация о том, что входит в пакет)

  • Less (только информация о том, что входит в пакет)

  • Gzip (только информация о том, что входит в пакет)

  • IPRoute2 (только информация о том, что входит в пакет)

  • Kbd (только информация о том, что входит в пакет)

  • Systemd (только информация о том, что входит в пакет)

  • Sysvinit (только информация о том, что входит в пакет)

  • Eudev (только информация о том, что входит в пакет)

  • Util-linux (только информация о том, что входит в пакет)

  • Man-DB (только информация о том, что входит в пакет)

  • Texinfo (только информация о том, что входит в пакет)

  • Vim (только информация о том, что входит в пакет)

  • 7.6.2. Настройка Sysvinit

  • 7.7. Файлы запуска оболочки Bash

  • 8.2. Создание файла /etc/fstab

  • 8.4. Использование GRUB для настройки процесса загрузки

  • 9.3. Перезагрузка системы

  • 9.4. Что теперь?

  • 7.2. General Network Configuration (SYSTEMD)

  • 7.5. Настройка системных часов (SYSTEMD)

  • 7.6. Настройка консоли Linux (SYSTEMD)

  • 7.7. Настройка языкового стандарта системы

  • 7.10. Использование и конфигурация Systemd

  • 8.4. Использование GRUB для настройки процесса загрузки

Revision: 11558 (ORIG)

Revision: 11558
Author: pierre
Date: 13 марта 2019 г. 20:58:54
Message:
Update all chapter 6 contents and description sections.
Patch by Xi Ruoyao.

Modified : /trunk/BOOK/chapter01/changelog.xml
Modified : /trunk/BOOK/chapter06/bash.xml
Modified : /trunk/BOOK/chapter06/binutils.xml
Modified : /trunk/BOOK/chapter06/coreutils.xml
Modified : /trunk/BOOK/chapter06/e2fsprogs.xml
Modified : /trunk/BOOK/chapter06/findutils.xml
Modified : /trunk/BOOK/chapter06/gawk.xml
Modified : /trunk/BOOK/chapter06/gcc.xml
Modified : /trunk/BOOK/chapter06/gettext.xml
Modified : /trunk/BOOK/chapter06/glibc.xml
Modified : /trunk/BOOK/chapter06/grub.xml
Modified : /trunk/BOOK/chapter06/libelf.xml
Modified : /trunk/BOOK/chapter06/linux-headers.xml
Modified : /trunk/BOOK/chapter06/man-db.xml
Modified : /trunk/BOOK/chapter06/meson.xml
Modified : /trunk/BOOK/chapter06/psmisc.xml
Modified : /trunk/BOOK/chapter06/python.xml
Modified : /trunk/BOOK/chapter06/readline.xml
Modified : /trunk/BOOK/chapter06/systemd.xml
Modified : /trunk/BOOK/chapter06/texinfo.xml
Modified : /trunk/BOOK/chapter06/util-linux.xml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.