mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
Merge pull request #1437 from lfzark/patch-7
Translated: 20140731 Minimal Linux Live.md 很好,这样就对了!
This commit is contained in:
commit
853f45a75e
@ -1,58 +0,0 @@
|
||||
Tranlating By lfzark
|
||||
|
||||
Minimal Linux Live
|
||||
================================================================================
|
||||
Minimal Linux Live is a set of Linux shell scripts which automatically build minimal Live Linux OS based on Linux [kernel][1] and [BusyBox][2]. All necessary source codes are automatically downloaded and all build operations are fully encapsulated in the scripts.
|
||||
|
||||
If you want to build your own Minimal Linux Live ISO image file, all you need to do is the following:
|
||||
|
||||
- Get the latest scripts from the [download][3] section.
|
||||
- Extract the scripts to some folder.
|
||||
- Make sure that all scripts are executable (chmod +x *.sh).
|
||||
- Depending on which Linux OS you are using, there might be one or more (or none, or even more) build dependencies that you need to resolve before you start the build process. If you work with Ubuntu, the following commands should resolve all necessary build dependencies:
|
||||
|
||||
----------
|
||||
|
||||
sudo apt-get install wget
|
||||
sudo apt-get install make
|
||||
sudo apt-get install gcc
|
||||
sudo apt-get install bc
|
||||
sudo apt-get install syslinux
|
||||
sudo apt-get install genisoimage
|
||||
|
||||
- Execute the script **build_minimal_linux_live.sh** and wait. If you have resolved all build dependencies, the whole process should take less than 30 minutes on a modern computer. If the build fails for some reason, most probably there are unresolved build dependencies. Several users reported that the build-essential package resolves all unexpected build dependencies for Ubuntu. If you are using Linux Mint try to install the package g++ and if you still have troubles then try the build-essential package. On Fedora you might need the static 'glibc' package glibc-static.
|
||||
|
||||
Please have in mind that the build dependencies can vary a lot depending on the Linux OS which you use and the software which you have already installed.
|
||||
|
||||
If you still have troubles then examine the failure message and google it. If you are unable to find solution, then you can ask someone more experienced Linux guru (if you know any) or as alternative you can contact me. Please, make sure that you have researched your problem in advance before you send me your question.
|
||||
|
||||
- When the scripts finish their job you will find newly created **minimal_linux_live.iso** in the same folder where you executed the scripts. You can burn the ISO image file on CD/DVD, install it on USB flash drive via [Universal USB Installer][4], or run it directly via PC emulator like [VirtualBox][5].
|
||||
|
||||
The produced ISO image file contains Linux kernel compiled with default options, BusyBox compiled with default options and very simple initramfs. This means that you don't get Windows support out of the box, nor you get any fancy desktop environment. All you get is a simple shell console which supports all BusyBox applets and... well, that's all. This is why it's called "minimal".
|
||||
|
||||
The good news is that even though the OS is small and simple, the build scripts are also very small and very simple. You can quite easily learn from the scripts and later modify them to include more stuff (I encourage you to do so). After you learn the basics you will have all the necessary tools and skills to create your own fully functional Linux based operating system! Entirely from scratch! Isn't it great?! :)
|
||||
|
||||
The tutorial provides more details about the inner structure of the scripts and the overall build process. I encourage you to go through this document when you have the time.
|
||||
|
||||
Below you can find several screenshots which show what the environment looks like when you boot your newly generated Minimal Linux Live OS.
|
||||
|
||||
![](http://minimal.linux-bg.org/images/screen1.png)
|
||||
|
||||
![](http://minimal.linux-bg.org/images/screen2.png)
|
||||
|
||||
![](http://minimal.linux-bg.org/images/screen3.png)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://minimal.linux-bg.org/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://kernel.org/
|
||||
[2]:http://busybox.net/
|
||||
[3]:http://minimal.linux-bg.org/#
|
||||
[4]:http://www.pendrivelinux.com/
|
||||
[5]:http://virtualbox.org/
|
60
translated/news/20140731 Minimal Linux Live.md
Normal file
60
translated/news/20140731 Minimal Linux Live.md
Normal file
@ -0,0 +1,60 @@
|
||||
最精简Linux Live CD版本:Minimal Linux Live
|
||||
================================================================================
|
||||
最精简Linux Live是一系列基于[linux内核][1] and [BusyBox][2]的自动生成最精简 Live Linux 系统linux shell脚本。所有所需的源码已经自动地被下载,而且所有的生成操作已经完全被封装在脚本中了。
|
||||
|
||||
如果你想定制属于自己的最精简Linux Live 的ISO镜像文件,以下是你需要做的:
|
||||
|
||||
- 从[下载][3]区域获得最新的脚本
|
||||
|
||||
- 把脚本解压到文件夹下
|
||||
|
||||
- 确保所有的脚本都可执行(可以使用命令chmod +x *.sh 添加可执行属性)
|
||||
- 在开始生成过程之前,取决于你使用什么Linux系统,可能会有一个或者多个依赖库(也可能不需要,或者更多)需要处理.如果使用Ubuntu的话,以下命令应该足以生成所有需要的依赖库:
|
||||
|
||||
----------
|
||||
|
||||
sudo apt-get install wget
|
||||
sudo apt-get install make
|
||||
sudo apt-get install gcc
|
||||
sudo apt-get install bc
|
||||
sudo apt-get install syslinux
|
||||
sudo apt-get install genisoimage
|
||||
|
||||
- 执行脚本 **build_minimal_linux_live.sh** 然后等待完成。如果你已经处理好所有的生成依赖库,那么在一台现代计算机上全部的过程应该值需要不超过30分钟。如果由于某些原因
|
||||
- 生成失败,最可能的应该是没有处理好生成依赖库。一些用户反应到生成所必需的包将会处理所有ubuntu上未知的生成依赖问题。
|
||||
- 如果使用Linux Mint 而且正在尝试安装 g++ 包,如果你依然遇到很多问题,那么你可以尝试 安装必需包。在Fedora系统上你可能需要安装 glibc-static包
|
||||
- 请记得所有的生成依赖库由于你使用的Linux操作系统和已经安装的软件不同将会发生很大的变化
|
||||
|
||||
如果依然有问题,请检查失败信息然后在google上搜索一下。如果你不能找到解决方案,你可以询问一些更有经验的linux专家(如果你认识的话),或者另外一个选择是联系我们。请确保在发送给我们之前,你已经视线遇到这些问题了。
|
||||
|
||||
- 当脚本完成他们的工作,你将会在执行脚本的同目录下发现一个新创建的**minimal_linux_live.iso** 文件。你可以烧录iso镜像到CD/DVD,通过[Universal USB Installer][4]工具安装到USB闪存设备,或者直接在PC的虚拟机上,例如[VirtualBox][5].直接运行。
|
||||
|
||||
|
||||
生成的ISO镜像文件包括使用默认选项编译的linux内核,使用默认选项编译的BusyBox和非常轻量级的initramfs。这意味着你不需要 另辟蹊径去获得windows支持,也不需要使用任何桌面环境。你所需要的只是一个支持BusyBox applets 的shell控制台,和..好吧。这些就够了.这就是为什么称它为 "最精简"
|
||||
|
||||
最好的消息是不仅操作系统很小很简单,而且生成脚本也同样的小巧玲珑。你可以很轻松地从脚本学习,并且修改他们去包含更多内容(我是很鼓励你这样做).在你学习完这些基础以后你将会拥有所有所必须的工具和技能去创造你自己的具有足够功能的linux操作系统!完全从零开始!是不是帅呆了!?:)
|
||||
|
||||
教程提供了更详细的脚本内部结构,和全部的生成过程,我鼓励你们如果有时间的话就去通读这个文档。
|
||||
|
||||
下面你会看到一些屏幕截图,他们展示了当你启动新生成的 Minimal Linux Live 操作系统时的环境情况。
|
||||
|
||||
![](http://minimal.linux-bg.org/images/screen1.png)
|
||||
|
||||
![](http://minimal.linux-bg.org/images/screen2.png)
|
||||
|
||||
![](http://minimal.linux-bg.org/images/screen3.png)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://minimal.linux-bg.org/
|
||||
|
||||
译者:[lfzark](https://github.com/lfzark)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://kernel.org/
|
||||
[2]:http://busybox.net/
|
||||
[3]:http://minimal.linux-bg.org/#
|
||||
[4]:http://www.pendrivelinux.com/
|
||||
[5]:http://virtualbox.org/
|
Loading…
Reference in New Issue
Block a user