Linux from Scratch Versione 6.2

Total Page:16

File Type:pdf, Size:1020Kb

Linux from Scratch Versione 6.2 Linux From Scratch Versione 6.2 Gerard Beekmans Linux From Scratch: Versione 6.2 di Gerard Beekmans Copyright © 1999–2006 Gerard Beekmans Estratto Traduzione a cura del gruppo ILDP-LFS per l'Italian Linux Documentation Project (http://ildp.pluto.it/). Per maggiori informazioni, si visiti http://ildp.pluto.it/lfs/. Copyright (c) 1999–2006, Gerard Beekmans All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redistributions in any form must retain the above copyright notice, this list of conditions and the following disclaimer • Neither the name of «Linux From Scratch» nor the names of its contributors may be used to endorse or promote products derived from this material without specific prior written permission • Any material derived from Linux From Scratch must contain a reference to the «Linux From Scratch» project THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS «AS IS» AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Linux From Scratch - Versione 6.2 Sommario Prefazione ................................................................................................................................................vii 1. Premessa ........................................................................................................................................vii 2. Audience .......................................................................................................................................viii 3. Prerequisiti ......................................................................................................................................ix 4. Requisiti del sistema host ................................................................................................................x 5. Tipografia .......................................................................................................................................xii 6. Struttura .........................................................................................................................................xiii 7. Errata .............................................................................................................................................xiv I. Introduzione ............................................................................................................................................1 1. Introduzione .....................................................................................................................................2 1.1. Come costruire un Sistema LFS .............................................................................................2 1.2. Risorse .....................................................................................................................................4 1.3. Aiuto .......................................................................................................................................5 II. Preparazione della costruzione ..............................................................................................................8 2. Preparazione di una nuova partizione ..............................................................................................9 2.1. Introduzione ............................................................................................................................9 2.2. Creazione di una nuova partizione ........................................................................................10 2.3. Creazione di un file system sulla partizione .........................................................................11 2.4. Montaggio della nuova partizione ........................................................................................12 3. Pacchetti e patch ............................................................................................................................13 3.1. Introduzione ..........................................................................................................................13 3.2. Tutti i pacchetti .....................................................................................................................14 3.3. Patch necessarie ....................................................................................................................21 4. Ultimi preparativi ...........................................................................................................................25 4.1. $LFS ......................................................................................................................................25 4.2. Creazione della directory $LFS/tools ...................................................................................26 4.3. Aggiunta dell'utente LFS ......................................................................................................27 4.4. Configurazione dell'ambiente ...............................................................................................28 4.5. SBU .......................................................................................................................................30 4.6. Le suite di test .......................................................................................................................31 5. Costruzione di un sistema temporaneo ..........................................................................................32 5.1. Introduzione ..........................................................................................................................32 5.2. Note tecniche sulla Toolchain ...............................................................................................33 5.3. Binutils-2.16.1 - Passo 1 .......................................................................................................36 5.4. GCC-4.0.3 - Passo 1 ..............................................................................................................38 5.5. Linux-Libc-Headers-2.6.12.0 ................................................................................................40 5.6. Glibc-2.3.6 ............................................................................................................................41 5.7. Regolazione della toolchain ..................................................................................................44 5.8. Tcl-8.4.13 ..............................................................................................................................46 5.9. Expect-5.43.0 ........................................................................................................................48 5.10. DejaGNU-1.4.4 ...................................................................................................................50 5.11. GCC-4.0.3 - Passo 2 ............................................................................................................51 5.12. Binutils-2.16.1 - Passo 2 .....................................................................................................54 5.13. Ncurses-5.5 .........................................................................................................................55 5.14. Bash-3.1 ..............................................................................................................................56 5.15. Bzip2-1.0.3 ..........................................................................................................................57 5.16. Coreutils-5.96 ......................................................................................................................58 iii Linux From Scratch - Versione 6.2 5.17. Diffutils-2.8.1 ......................................................................................................................59 5.18. Findutils-4.2.27 ...................................................................................................................60 5.19. Gawk-3.1.5 ..........................................................................................................................61 5.20. Gettext-0.14.5 .....................................................................................................................62 5.21. Grep-2.5.1a .........................................................................................................................63 5.22. Gzip-1.3.5 ...........................................................................................................................64 5.23. M4-1.4.4 ..............................................................................................................................65 5.24. Make-3.80 ...........................................................................................................................66 5.25.
Recommended publications
  • Pexpect Documentation Release 4.8
    Pexpect Documentation Release 4.8 Noah Spurrier and contributors Apr 17, 2021 Contents 1 Installation 3 1.1 Requirements...............................................3 2 API Overview 5 2.1 Special EOF and TIMEOUT patterns..................................6 2.2 Find the end of line – CR/LF conventions................................6 2.3 Beware of + and * at the end of patterns.................................7 2.4 Debugging................................................8 2.5 Exceptions................................................8 2.6 Pexpect on Windows...........................................9 3 API documentation 11 3.1 Core pexpect components........................................ 11 3.2 fdpexpect - use pexpect with a file descriptor.............................. 23 3.3 popen_spawn - use pexpect with a piped subprocess.......................... 23 3.4 replwrap - Control read-eval-print-loops................................. 24 3.5 pxssh - control an SSH session...................................... 25 4 Examples 33 5 FAQ 35 6 Common problems 39 6.1 Threads.................................................. 39 6.2 Timing issue with send() and sendline()................................. 39 6.3 Truncated output just before child exits................................. 40 6.4 Controlling SSH on Solaris....................................... 40 6.5 child does not receive full input, emits BEL............................... 40 7 History 41 7.1 Releases................................................. 41 7.2 Moves and forks............................................
    [Show full text]
  • Ajuba Solutions Version 1.4 COPYRIGHT Copyright © 1998-2000 Ajuba Solutions Inc
    • • • • • • Ajuba Solutions Version 1.4 COPYRIGHT Copyright © 1998-2000 Ajuba Solutions Inc. All rights reserved. Information in this document is subject to change without notice. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means electronic or mechanical, including but not limited to photocopying or recording, for any purpose other than the purchaser’s personal use, without the express written permission of Ajuba Solutions Inc. Ajuba Solutions Inc. 2593 Coast Avenue Mountain View, CA 94043 U.S.A http://www.ajubasolutions.com TRADEMARKS TclPro and Ajuba Solutions are trademarks of Ajuba Solutions Inc. Other products and company names not owned by Ajuba Solutions Inc. that appear in this manual may be trademarks of their respective owners. ACKNOWLEDGEMENTS Michael McLennan is the primary developer of [incr Tcl] and [incr Tk]. Jim Ingham and Lee Bernhard handled the Macintosh and Windows ports of [incr Tcl] and [incr Tk]. Mark Ulferts is the primary developer of [incr Widgets], with other contributions from Sue Yockey, John Sigler, Bill Scott, Alfredo Jahn, Bret Schuhmacher, Tako Schotanus, and Kris Raney. Mark Diekhans and Karl Lehenbauer are the primary developers of Extended Tcl (TclX). Don Libes is the primary developer of Expect. TclPro Wrapper incorporates compression code from the Info-ZIP group. There are no extra charges or costs in TclPro due to the use of this code, and the original compression sources are freely available from http://www.cdrom.com/pub/infozip or ftp://ftp.cdrom.com/pub/infozip. NOTE: TclPro is packaged on this CD using Info-ZIP’s compression utility.
    [Show full text]
  • Ebook - Informations About Operating Systems Version: August 15, 2006 | Download
    eBook - Informations about Operating Systems Version: August 15, 2006 | Download: www.operating-system.org AIX Internet: AIX AmigaOS Internet: AmigaOS AtheOS Internet: AtheOS BeIA Internet: BeIA BeOS Internet: BeOS BSDi Internet: BSDi CP/M Internet: CP/M Darwin Internet: Darwin EPOC Internet: EPOC FreeBSD Internet: FreeBSD HP-UX Internet: HP-UX Hurd Internet: Hurd Inferno Internet: Inferno IRIX Internet: IRIX JavaOS Internet: JavaOS LFS Internet: LFS Linspire Internet: Linspire Linux Internet: Linux MacOS Internet: MacOS Minix Internet: Minix MorphOS Internet: MorphOS MS-DOS Internet: MS-DOS MVS Internet: MVS NetBSD Internet: NetBSD NetWare Internet: NetWare Newdeal Internet: Newdeal NEXTSTEP Internet: NEXTSTEP OpenBSD Internet: OpenBSD OS/2 Internet: OS/2 Further operating systems Internet: Further operating systems PalmOS Internet: PalmOS Plan9 Internet: Plan9 QNX Internet: QNX RiscOS Internet: RiscOS Solaris Internet: Solaris SuSE Linux Internet: SuSE Linux Unicos Internet: Unicos Unix Internet: Unix Unixware Internet: Unixware Windows 2000 Internet: Windows 2000 Windows 3.11 Internet: Windows 3.11 Windows 95 Internet: Windows 95 Windows 98 Internet: Windows 98 Windows CE Internet: Windows CE Windows Family Internet: Windows Family Windows ME Internet: Windows ME Seite 1 von 138 eBook - Informations about Operating Systems Version: August 15, 2006 | Download: www.operating-system.org Windows NT 3.1 Internet: Windows NT 3.1 Windows NT 4.0 Internet: Windows NT 4.0 Windows Server 2003 Internet: Windows Server 2003 Windows Vista Internet: Windows Vista Windows XP Internet: Windows XP Apple - Company Internet: Apple - Company AT&T - Company Internet: AT&T - Company Be Inc. - Company Internet: Be Inc. - Company BSD Family Internet: BSD Family Cray Inc.
    [Show full text]
  • A Multiplatform Pseudo Terminal
    A Multi-Platform Pseudo Terminal API Project Report Submitted in Partial Fulfillment for the Masters' Degree in Computer Science By Qutaiba Mahmoud Supervised By Dr. Clinton Jeffery ABSTRACT This project is the construction of a pseudo-terminal API, which will provide a pseudo-terminal interface access to interactive programs. The API is aimed at developing an extension to the Unicon language to allow Unicon programs to easily utilize applications that require user interaction via a terminal. A pseudo-terminal is a pair of virtual devices that provide a bidirectional communication channel. This project was constructed to enable an enhancement to a collaborative virtual environment, because it will allow external tools such to be utilized within the same environment. In general the purpose of this API is to allow the UNICON runtime system to act as the user via the terminal which is provided by the API, the terminal is in turn connected to a client process such as a compiler, debugger, or an editor. It can also be viewed as a way for the UNICON environment to control and customize the input and output of external programs. Table of Contents: 1. Introduction 1.1 Pseudo Terminals 1.2 Other Terminals 1.3 Relation To Other Pseudo Terminal Applications. 2. Methodology 2.1 Pseudo Terminal API Function Description 3. Results 3.1 UNIX Implementation 3.2 Windows Implementation 4. Conclusion 5. Recommendations 6. References Acknowledgments I would like to thank my advisor, Dr. Clinton Jeffery, for his support, patience and understanding. Dr. Jeffery has always been prompt in delivering and sharing his knowledge and in providing his assistance.
    [Show full text]
  • Networking Telnet
    IBM i Version 7.2 Networking Telnet IBM Note Before using this information and the product it supports, read the information in “Notices” on page 99. This edition applies to IBM i 7.2 (product number 5770-SS1) and to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. This document may contain references to Licensed Internal Code. Licensed Internal Code is Machine Code and is licensed to you under the terms of the IBM License Agreement for Machine Code. © Copyright International Business Machines Corporation 1998, 2013. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Telnet................................................................................................................... 1 What's new for IBM i 7.2..............................................................................................................................1 PDF file for Telnet........................................................................................................................................ 1 Telnet scenarios...........................................................................................................................................2 Telnet scenario: Telnet server configuration.........................................................................................2 Telnet scenario: Cascaded Telnet
    [Show full text]
  • Introduction to FOSS (Free and Open Source Software) Department Elective – Syllabi Department of Computer Engineering, MNIT Jaipur
    Introduction to FOSS (Free and Open Source Software) Department Elective – Syllabi Department of Computer Engineering, MNIT Jaipur 1. Unit 1 – Introduction to the FOSS philosophy (2 hrs) Overview of Free/Open Source Software, Definition of FOSS & GNU, History of GNU/Linux and the Free Software Movement, Advantages of Free Software and GNU/Linux, FOSS usage, trends and potential: global and Indian; Popular FOSS alternatives to non-free software (GIMP, OpenOffice, GAIM, Firefox, Thunderbird etc.) 2. Unit 2 – GNU/Linux Basics (8 hrs) GNU/Linux OS installation, detecting hardware, configuring disk partitions & file systems and install a GNU/Linux distribution, Basic shell commands - logging in, listing files, editing files, copying/moving files, viewing file contents, changing file modes and permissions, process management, User and group management, file ownerships and permissions, PAM authentication, Introduction to common system configuration files & log files, Configuring networking, basics of TCP/IP networking and routing, connecting to the Internet (through dialup, DSL, Ethernet, leased line and Wifi). Configuring additional hardware - sound cards, displays & display cards, network cards, modems, USB drives, CD writers. 3. Unit 3 – GNU/Linux Advanced (8 hrs) Understanding the OS boot up process; GNU/Linux distributions – case study of Fedora Core, Debian and Gentoo; basic understanding of the Linux kernel, kernel configuration, installing Linux from Scratch, understanding the Gnome and KDE environments and their components, Various
    [Show full text]
  • An Empirical Investigation Into Programming Language Syntax
    i i i i An Empirical Investigation into Programming Language Syntax ANDREAS STEFIK, University of Nevada, Las Vegas SUSANNA SIEBERT, The Genome Institute, Washington University School of Medicine Recent studies in the literature have shown that syntax remains a significant barrier to novice computer science students in the field. While this syntax barrier is known to exist, whether and how it varies across programming languages has not been carefully investigated. For this article, we conducted four empirical studies on programming language syntax as part of a larger analysis into the, so called, programming language wars. We first present two surveys conducted with students on the intuitiveness of syntax, which we used to garner formative clues on what words and symbols might be easy for novices to understand. We followed up with two studies on the accuracy rates of novices using a total of six programming languages: Ruby, Java, Perl, Python, Randomo, and Quorum. Randomo was designed by randomly choosing some keywords from the ASCII table (a metaphorical placebo). To our surprise, we found that languages using a more traditional C-style syntax (both Perl and Java) did not afford accuracy rates significantly higher than a language with randomly generated keywords, but that languages which deviate (Quorum, Python, and Ruby) did. These results, including the specifics of syntax that are particularly problematic for novices, may help teachers of introductory programming courses in choosing appropriate first languages and in helping students to overcome the challenges they face with syntax. Categories and Subject Descriptors: D.3 [Programming Languages]; H.1.2 [Information Systems]: User/Machine Systems—Software psychology General Terms: Design, Experimentation, Human Factors, Standardization Additional Key Words and Phrases: Programming Languages, Novice Programmers, Syntax ACM Reference Format: Stefik, A.
    [Show full text]
  • Linux from Scratch 版本 R11.0-36-中⽂翻译版 发布于 2021 年 9 ⽉ 21 ⽇
    Linux From Scratch 版本 r11.0-36-中⽂翻译版 发布于 2021 年 9 ⽉ 21 ⽇ 由 Gerard Beekmans 原著 总编辑:Bruce Dubbs Linux From Scratch: 版本 r11.0-36-中⽂翻译版 : 发布于 2021 年 9 ⽉ 21 ⽇ 由 由 Gerard Beekmans 原著和总编辑:Bruce Dubbs 版权所有 © 1999-2021 Gerard Beekmans 版权所有 © 1999-2021, Gerard Beekmans 保留所有权利。 本书依照 Creative Commons License 许可证发布。 从本书中提取的计算机命令依照 MIT License 许可证发布。 Linux® 是Linus Torvalds 的注册商标。 Linux From Scratch - 版本 r11.0-36-中⽂翻译版 ⽬录 序⾔ .................................................................................................................................... viii i. 前⾔ ............................................................................................................................ viii ii. 本书⾯向的读者 ............................................................................................................ viii iii. LFS 的⽬标架构 ............................................................................................................ ix iv. 阅读本书需要的背景知识 ................................................................................................. ix v. LFS 和标准 ..................................................................................................................... x vi. 本书选择软件包的逻辑 .................................................................................................... xi vii. 排版约定 .................................................................................................................... xvi viii. 本书结构 .................................................................................................................
    [Show full text]
  • Linux from Scratch Version 6.2
    Linux From Scratch Version 6.2 Gerard Beekmans Linux From Scratch: Version 6.2 by Gerard Beekmans Copyright © 1999–2006 Gerard Beekmans Copyright (c) 1999–2006, Gerard Beekmans All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redistributions in any form must retain the above copyright notice, this list of conditions and the following disclaimer • Neither the name of “Linux From Scratch” nor the names of its contributors may be used to endorse or promote products derived from this material without specific prior written permission • Any material derived from Linux From Scratch must contain a reference to the “Linux From Scratch” project THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Linux From Scratch - Version 6.2 Table of Contents Preface
    [Show full text]
  • Cucumber Linux Distribution Scott Court February 16, 2018 Who Am I?
    An Overview of How I Created the Cucumber Linux Distribution Scott Court February 16, 2018 Who am I? What is Cucumber Linux? ● A Linux distribution built entirely from source, from scratch ● An independent distribution: it’s not based on any other Linux distribution. ● Inspired by: a mixture of Slackware and Linux from Scratch. ● Architectures: i686 and x86_64 ● Package manager: pkgtools (borrowed from Slackware; uses tar archives as packages like Pacman). ● License: MIT ● Mission: provide a Linux distribution that follows the Unix Philosophy with a focus on simplicity, stability and security, and is usable as an every day, general purpose operating system. What can it Do? ● It’s functional as both a server and desktop operating system. ● Server Operating System: – Contains a fully functional LAMP stack as well as SSH, mail, DNS, FTP and Rsync servers. – Runs the web server and mail server for cucumberlinux.com. – Runs the primary mirror for Cucumber Linux (http and rsync). ● Desktop Operating System: – Comes with the XFCE desktop environment, a web browser, a mail client and an office suite. – It’s running this presentation right now. May 2016 – How it Began ● I had just completed my freshman year of college. ● I was looking for a project to work on that Summer. ● I had grown unhappy with the direction most every other Linux distribution was going in (namely the exodus from Sysvinit to Systemd). ● I had always had an interest in operating system development. ● So I set out to make my own Linux distribution, without Systemd. May 2016 – July 2016 ● May, June and July of 2016 were spent doing research and trying out different techniques for building a Linux system from scratch.
    [Show full text]
  • Building Embedded Linux Systems ,Roadmap.18084 Page Ii Wednesday, August 6, 2008 9:05 AM
    Building Embedded Linux Systems ,roadmap.18084 Page ii Wednesday, August 6, 2008 9:05 AM Other Linux resources from O’Reilly Related titles Designing Embedded Programming Embedded Hardware Systems Linux Device Drivers Running Linux Linux in a Nutshell Understanding the Linux Linux Network Adminis- Kernel trator’s Guide Linux Books linux.oreilly.com is a complete catalog of O’Reilly’s books on Resource Center Linux and Unix and related technologies, including sample chapters and code examples. ONLamp.com is the premier site for the open source web plat- form: Linux, Apache, MySQL, and either Perl, Python, or PHP. Conferences O’Reilly brings diverse innovators together to nurture the ideas that spark revolutionary industries. We specialize in document- ing the latest tools and systems, translating the innovator’s knowledge into useful skills for those in the trenches. Visit con- ferences.oreilly.com for our upcoming events. Safari Bookshelf (safari.oreilly.com) is the premier online refer- ence library for programmers and IT professionals. Conduct searches across more than 1,000 books. Subscribers can zero in on answers to time-critical questions in a matter of seconds. Read the books on your Bookshelf from cover to cover or sim- ply flip to the page you need. Try it today for free. main.title Page iii Monday, May 19, 2008 11:21 AM SECOND EDITION Building Embedded Linux SystemsTomcat ™ The Definitive Guide Karim Yaghmour, JonJason Masters, Brittain Gilad and Ben-Yossef, Ian F. Darwin and Philippe Gerum Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Building Embedded Linux Systems, Second Edition by Karim Yaghmour, Jon Masters, Gilad Ben-Yossef, and Philippe Gerum Copyright © 2008 Karim Yaghmour and Jon Masters.
    [Show full text]
  • Download Article (PDF)
    Advances in Social Science, Education and Humanities Research, volume 287 1st International Conference on Education and Social Science Research (ICESRE 2018) DEVELOPMENT OF LINUX UBUNTU OPEN SOURCE DISTRIBUTION BASED OPEN SOURCE DISTRIBUTION SYSTEM TO MINIMIZE STUDENTS 'SOFTWARE STUDY Achmad Buchori Nur Irfan Wibowo Siti Kholifah University of PGRI Semarang University of PGRI Semarang STEKOM Semarang Semarang, Indonesia Semarang, Indonesia Semarang, Indonesia [email protected] [email protected] [email protected] Abstract-This study aims to develop The Zero-based is present in the world of information technology not Ubuntu Open Source Distribution Operating System to only an Operating System, but also a trigger for the minimize software piracy among students. Distribution thought revolution in the software industry. Linux as Zero Development is implemented on Ubuntu 18.04 Linux a product of the development of an open source with pinguy builder software, all functional requirements have been successfully implemented in accordance with the environment (open code) in the world of software design. The planning used in this study is the development programming and development, has been proven as a and use of the waterfall development model with stages, stable Operating System [4]. Linux can be used as an namely analysis, design, program making, program testing, alternative information technology solution, this is implementation, to the stage of validity testing, practicality because Linux is "free" and has high quality so it does and effectiveness. The test was carried out using a validity not need to continue to depend on ready-made questionnaire, practicality and user satisfaction commercial software products made by certain questionnaire.
    [Show full text]