⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buildmin-9.html

📁 怎样建立一个最小的linux系统
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>How To Build a Minimal Linux System from Source Code: Bash</TITLE> <LINK HREF="buildMin-10.html" REL=next> <LINK HREF="buildMin-8.html" REL=previous> <LINK HREF="buildMin.html#toc9" REL=contents></HEAD><BODY><A HREF="buildMin-10.html">Next</A><A HREF="buildMin-8.html">Previous</A><A HREF="buildMin.html#toc9">Contents</A><HR><H2><A NAME="s9">9. Bash</A></H2><P>It me took quite a lot of reading and thinking and trial and errorto get Bash to install itself where I thought it should go. Theconfiguration options I used are<P><P><PRE> ./configure --prefix=/mnt/target/usr/local --exec-prefix=/mnt/target --with-curses </PRE><P><P>Once you have made and installed Bash, you need to make a symlink like this <CODE>cd /mnt/target/bin; ln -s bash sh</CODE>. This is because scripts usuallyhave a first line like this<P><P><PRE>#!/bin/sh</PRE><P><P>If you don't have the symlink, your scripts won't be able to run, becausethey will be looking for <CODE>/bin/sh</CODE> not <CODE>/bin/bash</CODE>. <P><P>You could reboot again at this point if you like. You should notice thatthe scripts actually run this time, though you still can't login, becausethere are no <CODE>getty</CODE> or <CODE>login</CODE> programs.<P><HR><A HREF="buildMin-10.html">Next</A><A HREF="buildMin-8.html">Previous</A><A HREF="buildMin.html#toc9">Contents</A></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -