Pocket Linux Guide
Saturday, February 27th, 2010This is pocket linux guide for you, pocket mean this guide is very easy to understand .
Contents
Legal Information
1. Copyright and License
2. Disclaimer
Introduction
1. About Pocket Linux
2. Prerequisite Skills
3. Project Format
4. Help & Support
5. Feedback
Chapter 1. Project Initiation
1.1. A Brief History of GNU/Linux
1.2. The Goal of Pocket Linux
1.3. Working Within The Constraints
Chapter 2. A Simple Prototype
2.1. Analysis
2.2. Design
2.2.1. Simplification
2.2.2. Boot Disk
2.2.3. Root Disk
2.2.4. CPU Compatibility
2.3. Construction
2.3.1. Prepare the boot disk media
2.3.2. Build the GRUB bootloader
2.3.3. Copy the bootloader files to diskette
2.3.4. Finish bootloader installation
2.3.5. Build the Linux kernel
2.3.6. Copy the kernel to diskette
2.3.7. Unmount the boot disk.
2.3.8. Prepare the root disk media
2.3.9. Build BASH
2.3.10. Copy BASH to the root disk
2.3.11. Create device files that BASH needs
2.3.12. Unmount the root disk
2.4. Implementation
2.4.1. System startup
2.4.2. Testing what works
2.4.3. Noting what does not work
2.4.4. System shutdown
Chapter 3. Saving Space
3.1. Analysis
3.2. Design
3.2.1. Shared Libraries
3.2.2. Stripped Binaries
3.2.3. Compressed Root Filesystem
3.3. Construction
3.3.1. Create a ramdisk
3.3.2. Rebuild the BASH shell
3.3.3. Determine which libraries are required
3.3.4. Copy BASH and its libraries to the ramdisk
3.3.5. Create a console device
3.3.6. Compress the ramdisk image
3.3.7. Copy the compressed image to diskette
3.4. Implementation
3.4.1. System startup
3.4.2. Verify results
3.4.3. System shutdown
Chapter 4. Some Basic Utilities
4.1. Analysis
4.2. Design
4.2.1. Determining Required Commands
4.2.2. Locating Source Code
4.2.3. Leveraging FHS
4.2.4. Downloading Source Code
4.3. Construction
4.3.1. Create a staging area
4.3.2. Copy contents of phase 2 rootdisk
4.3.3. Install binaries from GNU coreutils
4.3.4. Copy additional libraries
4.3.5. Strip binaries and libraries
4.3.6. Create a compressed root disk image
4.3.7. Write the root disk image to floppy
4.4. Implementation
4.4.1. System startup
4.4.2. Testing new commands
4.4.3. System shutdown
Chapter 5. Checking and Mounting Disks
5.1. Analysis
5.2. Design
5.2.1. Determining necessary utilities
5.2.2. Finding source code
5.2.3. Automating fsck and mount
5.2.4. File dependencies
5.3. Construction
5.3.1. Install utilities from e2fsprogs
5.3.2. Install utilities from util?linux
5.3.3. Check library requirements
5.3.4. Strip binaries to save space
5.3.5. Create additional device files
5.3.6. Create the fstab and mtab files
5.3.7. Write a script to check and mount local filesystems
5.3.8. Create a compressed root disk image
5.3.9. Write the root disk image to floppy
5.4. Implementation
5.4.1. System startup
5.4.2. Test the local_fs script
5.4.3. Create and mount additional filesystems
5.4.4. System shutdown
Chapter 6. Automating Startup & Shutdown
6.1. Analysis
6.2. Design
6.2.1. Determining necessary utilities
6.2.2. Obtaining source code
6.2.3. Checking dependencies
6.2.4. Designing a simple GRUB configuration file
6.2.5. Outlining start?up scripts
6.3. Construction
6.3.1. Create a GRUB configuration file
6.3.2. Install sysvinit utilities
6.3.3. Create /etc/inittab file
6.3.4. Create /etc/init.d/rc script
6.3.5. Modify /etc/init.d/local_fs script
6.3.6. Create a hostname script
6.3.7. Create halt & reboot scripts
6.3.8. Create rcN.d directories and links
6.3.9. Create the root disk image
6.3.10. Copy the image to diskette
6.4. Implementation
6.4.1. System Startup
6.4.2. Verify success of startup scripts
6.4.3. System shutdown
Chapter 7. Enabling Multiple Users
7.1. Analysis
7.2. Design
7.2.1. The login process
7.2.2. Obtaining source code
7.2.3. Creating support files
7.2.4. Dependencies
7.2.5. Assigning ownership and permissions
7.3. Construction
7.3.1. Verify presence of getty and login
7.3.2. Modify inittab for multi?user mode
7.3.3. Create tty devices
7.3.4. Create support files in /etc
7.3.5. Copy required libraries
7.3.6. Set directory and file permissions
7.3.7. Create the root disk image
7.3.8. Copy the image to diskette
7.4. Implementation
7.4.1. System Startup
7.4.2. Add a new user to the system
7.4.3. Test the new user’s ability to use the system
7.4.4. System shutdown
Chapter 8. Filling in the Gaps
8.1. Analysis
8.2. Design.8.2.1. more
8.2.2. More device files
8.2.3. ps, sed & ed
8.3. Construction
8.3.1. Write a “more” script
8.3.2. Create additional device files
8.3.3. Install ps
8.3.4. Install sed
8.3.5. Install ed
8.3.6. Strip binaries to save space
8.3.7. Ensure proper permissions
8.3.8. Create the root disk image
8.3.9. Copy the image to diskette
8.4. Implementation
8.4.1. System startup
8.4.2. Test the “more” script
8.4.3. Use ps to show running processes
8.4.4. Run a simple sed script
8.4.5. Test the “ed” editor
8.4.6. System shutdown
Chapter 9. Project Wrap Up
9.1. Celebrating Accomplishments
9.2. Planning Next Steps
Appendix A. Hosting Applications
A.1. Analysis
A.2. Design
A.2.1. Support for audio hardware
A.2.2. Creating space for the program
A.2.3. Accessing audio files
A.2.4. Other required files
A.2.5. Summary of tasks
A.3. Construction
A.3.1. Create an enhanced boot disk
Appendix A. Hosting Applications
A.3.2. Create an enhanced root disk
A.3.3. Create a compressed /usr disk for mp3blaster
A.3.4. Create a data diskette for testing
A.4. Implementation
A.4.1. System Startup
A.4.2. Verify that the /usr diskette loaded properly
A.4.3. Check the audio device initialization
A.4.4. Test audio output
A.4.5. Play a sample file
A.4.6. System shutdown
Appendix B. GNU Free Documentation License
B.1. PREAMBLE
B.2. APPLICABILITY AND DEFINITIONS
B.3. VERBATIM COPYING
B.4. COPYING IN QUANTITY
B.5. MODIFICATIONS
B.6. COMBINING DOCUMENTS
B.7. COLLECTIONS OF DOCUMENTS
B.8. AGGREGATION WITH INDEPENDENT WORKS
B.9. TRANSLATION
B.10. TERMINATION
B.11. FUTURE REVISIONS OF THIS LICENSE
B.12. ADDENDUM: How to use this License for your documents
Pdf Panda - We always provide latest fresh pdf ebook for you