BusyBox配置菜单的详细选项
- 格式:docx
- 大小:39.13 KB
- 文档页数:10
busybox用法Busybox是一个精简的Linux工具集,它集成了许多常用的Unix命令和工具,适用于嵌入式设备和资源有限的系统。
本文将介绍Busybox的用法,以帮助用户更好地使用这个工具集。
1. Busybox安装与配置Busybox通常被用作嵌入式设备的基础工具集,它可以帮助开发者节省系统空间和资源。
安装Busybox可以通过源代码编译或使用预编译的二进制文件。
在安装过程中,用户可以选择需要的命令和工具,以及相应的配置选项来满足自己的需求。
2. Busybox常用命令Busybox集成了许多常用的Unix命令和工具,涵盖了文件操作、系统管理、网络通信等多个领域。
以下是一些常用的Busybox命令:- `ls`: 列出目录或文件的内容。
- `cd`: 切换当前工作目录。
- `mkdir`: 创建新的目录。
- `rm`: 删除目录或文件。
- `cp`: 复制目录或文件。
- `mv`: 移动目录或文件。
- `grep`: 在文件中查找匹配的文本。
- `cat`: 查看文件的内容。
- `ifconfig`: 配置网络接口。
- `ping`: 测试网络连接。
- `top`: 监视系统进程和资源占用。
- `kill`: 终止正在运行的进程。
3. Busybox的扩展功能虽然Busybox已经提供了许多常用的命令和工具,但有时候仍然需要更多的功能。
对于这种情况,Busybox还支持模块化扩展,用户可以选择性地添加额外的功能模块。
这些功能模块可以通过Busybox的配置文件进行设置和编译,以满足特定的需求。
4. Busybox的使用案例Busybox的应用非常广泛,特别适用于资源有限的嵌入式系统。
一些常见的Busybox使用案例包括以下几个方面:- 嵌入式设备的基础命令工具集。
- Linux发行版的文件系统工具。
- Docker等容器技术的核心组件。
总结:以上是关于Busybox用法的简要介绍。
Busybox是一个非常实用的工具集,可以帮助用户进行文件操作、系统管理和网络通信等各种任务。
busybox linuxrc 参数Busybox是一个开源工具集,它提供了用于管理嵌入式Linux系统的各种实用工具。
其中的一个工具是linuxrc,它是一个初始化脚本,负责在Linux系统启动过程中进行一些必要的初始化操作。
linuxrc脚本可以接受一些参数,这些参数可以用来自定义系统的启动行为。
下面是一些常用的busybox linuxrc参数及其功能:1. root:这个参数用来指定系统的根文件系统所在的设备。
例如,可以使用root=/dev/sda1来指定根文件系统在第一个SATA硬盘上的第一个分区。
2. init:这个参数用来指定系统的init程序的路径。
init程序是Linux系统中的第一个进程,它负责启动所有其他进程。
可以使用init=/sbin/init来指定系统的init 程序路径。
3. console:这个参数用来指定系统的控制台设备。
控制台设备是用户与系统进行交互的主要终端。
可以使用console=/dev/ttyS0来指定系统的串口控制台设备。
4. ip:这个参数用来指定系统的IP地址。
可以使用ip=192.168.0.100来指定系统的IP地址为192.168.0.100。
5. netmask:这个参数用来指定系统的子网掩码。
子网掩码用于划分网络中的主机和网络地址。
可以使用netmask=255.255.255.0来指定系统的子网掩码为255.255.255.0。
通过在linuxrc脚本中设置这些参数,可以在系统启动时自定义文件系统、设备和网络配置。
这对于嵌入式系统开发人员来说非常有用,可以根据实际需求来定制系统的启动行为,提高系统的灵活性和适应性。
Busybox的linuxrc参数提供了一种简单而有效的方式来配置嵌入式Linux系统的启动过程。
busybox nc 参数
busybox nc是BusyBox 中的nc(netcat)命令的简化版本,用于进行网络相关的操作。
BusyBox 是一个精简的Linux 工具集,包括了许多标准的Unix 工具,旨在在嵌入式系统和资源受限的环境中提供基本的命令行工具。
以下是busybox nc常见的一些参数和用法:
busybox nc [选项] 主机端口
常见选项包括:
•-l: 以监听模式启动(用于作为服务器)。
•-p <本地端口>: 指定本地端口。
•-e <程序>: 在接受连接后执行指定的程序。
•-q <秒数>: 设置发送或接收数据的超时时间。
•-u: 使用UDP 模式。
•-v: 详细模式,显示更多调试信息。
例子:
1.启动一个简单的HTTP 服务器:
busybox nc -l -p 8080 -e /bin/cat
这会监听本地端口8080,并将连接的内容发送到/bin/cat。
2.通过TCP 连接到远程主机和端口:
busybox nc 192.168.1.1 80
这会连接到远程主机的80 端口。
注意,BusyBox 版本的nc可能不支持所有标准nc的高级功能,具体
取决于BusyBox 编译时的配置和版本。
为了获取关于busybox nc的具体信息,可以查阅BusyBox 的文档或在命令行中输入busybox nc --help。
BUSYBOX命令行使用BusyBox是一个开源项目,它是一个集成了一系列Unix工具和命令的单个可执行文件。
作为一个独立的小型工具箱,BusyBox具有轻巧、高效的特点,可以运行在各种嵌入式设备和嵌入式操作系统上。
BusyBox的设计使得它可以被用作Linux系统的系统工具。
BusyBox的命令行使用方式与传统的Unix系统类似,它支持大部分常用的命令和选项,并且有一些特殊的命令和选项可以用来操作和配置BusyBox本身。
下面将介绍一些常用的BusyBox命令。
1. cd命令:用于改变当前工作目录。
如`cd /usr/bin`将当前目录切换到/usr/bin目录。
2. ls命令:用于列出当前目录下的文件和子目录。
如`ls -l`将以长格式显示文件和目录列表。
3. cp命令:用于拷贝文件或目录。
如`cp file1.txt file2.txt`将文件file1.txt拷贝到file2.txt。
4. mv命令:用于移动或重命名文件或目录。
如`mv file1.txtfile2.txt`将文件file1.txt重命名为file2.txt。
5. rm命令:用于删除文件或目录。
如`rm file.txt`将删除名为file.txt的文件。
6. mkdir命令:用于创建新目录。
如`mkdir dir1`将在当前目录下创建名为dir1的目录。
7. rmdir命令:用于删除空目录。
如`rmdir dir1`将删除名为dir1的目录。
8. cat命令:用于连接文件并输出到标准输出。
如`cat file1.txt file2.txt`将文件file1.txt和file2.txt的内容输出到屏幕上。
9. touch命令:用于创建或更新文件的访问时间和修改时间。
如`touch file.txt`将创建一个名为file.txt的空文件。
10. find命令:用于在文件系统中查找文件或目录。
如`find /usr-name "*.txt"`将在/usr目录及其子目录中所有以.txt结尾的文件。
想找一些现成的busybox配置脚本启动网络搜到的都是些介绍性质的,彼此拷来拷去的东西,没办法.自己看脚本配置,很简单,几分钟就搞定了.过程从busybox的启动脚本:/etc/rc.d/init.d/network的启动过程终可以看到网设备的初始化过程.首先/etc/network.conf终定义了NETWORKING和网关的值,如果是yes那么从network.d中找设备的配置文件.(在linux发行版中看network配置,它地网卡配置在/etc/sysconfig目录下)network如下;#!/bin/ash## Network interface(s) init script## config: /etc/network.conf# /etc/network.d/interface.[devname]. /etc/rc.d/init.d/functions. /etc/network.confif [ "$NETWORKING" != "yes" ]; thenecho "Networking is disabled in /etc/network.conf"exit 0ficase "$1" instart)for i in /etc/network.d/interface.*doif [ -r "$i" ]; then. $iif [ "$DHCP" = "yes" ]; thenecho -n "Starting DHCP for interface $INTERFACE: "udhcpc -b -i "$INTERFACE" \-p "/var/run/udhcpc.$INTERFACE.pid" \> /dev/nullelseecho -n "Setting up interface $INTERFACE: "ifconfig "$INTERFACE" "$IPADDRESS" \netmask "$NETMASK" \broadcast "$BROADCAST" upficheck_statusfidoneif [ "$USE_GATEWAY" = "yes" -a -n "$GATEWAY" ]; thenecho -n "Setting default route: "route add default gw $GATEWAYcheck_statusfi;;stop)if [ "$USE_GATEWAY" = "yes" -a -n "$GATEWAY" ]; then echo -n "Removing default route: "route del -net 0.0.0.0check_statusfifor i in /etc/network.d/interface.*doif [ -r "$i" ]; then. $iecho -n "Shutting down interface $INTERFACE: "ifconfig $INTERFACE downcheck_statusif [ "$DHCP" = "yes" ]; thenkill `cat "/var/run/udhcpc.$INTERFACE.pid"`sleep 1fifidone;;restart)$0 stop$0 start;;status)ifconfigroute;;*)echo "Usage: $0 {start|stop|restart|status}"exit 1esac所以设计网络初始化如下:在/etc/rc.d/init.d/start中加文件联结如下;ln -s ../init.d/network 02network定义/etc/network.conf如下:NETWORKING=yesUSE_GATEWAY=yesGATEWAY=192.168.2.1在etc中加目录network.d,并且定义v/etc/network.d/interface.eth0如下;DHCP=noINTERFACE=eth0IPADDRESS=192.168.1.3NETMASK=255.255.255.0BROADCAST=192.168.1.255按照上述步骤可以添加网卡配置.如果输入命令echo 1 > /proc/sys/net/ip_forward 那么可以实现转发。
Busybox Setting配置Busybox Settings ---> //busybox设置选项General Configuration ---> //通用设置/*桌面系统全配置,嵌入式系统不需要*/[ ] Enable options for full-blown desktop systems[ ] Provide compatible behavior for rare corner cases (bigger code) (NEW)/*兼容SUSv2以后命令*/[*] Enable obsolete features removed before SUSv3 (NEW)/*如果不适用GCC编译需要选择,用GCC不需要*/[ ] Avoid using GCC-specific code constructs (NEW)--- Enable Linux-specific applets and features/*缓冲区分配政策(适用malloc分配)*/Buffer allocation policy (Allocate with Malloc) --->/*显示简短的帮助信息,如果不想显示,可以节省7K空间*/[*] Show applet usage messages (NEW)/*显示详细的帮助信息,增加13K*/[*] Show verbose applet usage messages (NEW)/*运行<app> —help显示的帮助信息*/[*] Store applet usage messages in compressed form (NEW)/*支持—install [-s]命令,该选项允许在busybox运行时动态创建链接*/[*] Support --install [-s] to install applet links at runtime (NEW)/*不使用/usr,当make install时,所有程序安装在/bin和/sbin下,而不安装在/usr/bin和/usr/sbin下*/[ ] Don't use /usr (NEW)/*支持系统语言环境,需要系统支持*/[ ] Enable locale support (system needs locale for this to work) (NEW)/*支持unicode编码*/[*] Support Unicode (NEW)/*选中当LANG变量值为“XXXX.utf8时生效,否则总是生效”*/[ ] Check $LANG environment variable (NEW)/*典型值63,表示一切输入输出设备*/(63) Character code to substitute unprintable characters with (NEW)/*不支持拉丁文*/(767) Range of supported Unicode characters (NEW)/*如果不选,0长度的unicode字符编码不显示*/[ ] Allow zero-width Unicode characters on output (NEW)/*如果不选,大于1长度的unicode字符编码不显示*/[ ] Allow wide Unicode characters on output (NEW)/**/[ ] Bidirectional character-aware line input (NEW)/**/[ ] Make it possible to enter sequences of chars which are not Unicode (NEW)/*允许使用GUN的长参数*/[*] Support for --long-options (NEW)/*需要devpts挂载上*/[*] Use the devpts filesystem for Unix98 PTYs (NEW)/*除非你有一个好的原因,否则不要使能*/[ ] Clean up all memory before exiting (usually not needed) (NEW)/*使用/var/run/utmp追踪哪个用户处于登陆状态,程序在这设置和删除接入点*/ [*] Support utmp file (NEW)/*程序将在/var/run/wtmp文件附加新接入点*/[*] Support wtmp file (NEW)/*支持一些程序写pid文件*/[*] Support writing pidfiles (NEW)/*设置busybox的二进制程序给予root权限*/[*] Support for SUID/SGID handling (NEW)/*通过检查/etc/busybox.conf文件来确定SUID/SGID的状态(笨方法)*/[*] Runtime SUID/SGID configuration via /etc/busybox.conf (NEW)/*选中避免没有权限的警告*/[*] Suppress warning message if /etc/busybox.conf is not readable (NEW)/*启用SELinux支持LS,PS和ID指令。
BusyBox配置菜单的详细选项1 Busybox Settings --->2 General Configuration --->3 [ ] Enable options for full-blown desktop systems4 [ ] Provide compatible behavior for rare corner cases (bigger code)5 [ ] Assume that 1:1 char/glyph correspondence is not true6 Buffer allocation policy (Allocate with Malloc) --->7 --- Show terse applet usage messages8 [*] Show verbose applet usage messages9 [*] Store applet usage messages in compressed form10 [*] Support --install [-s] to install applet links at runtime11 [*] Enable locale support (system needs locale for this to work)12 [*] Support for --long-options13 [*] Use the devpts filesystem for Unix98 PTYs14 [ ] Clean up all memory before exiting (usually not needed)15 [*] Support writing pidfiles16 --- Support for SUID/SGID handling17 [*] Runtime SUID/SGID configuration via /etc/18 [*] Suppress warning message if /etc/ is not readable19 [ ] Support NSA Security Enhanced Linux20 [ ] exec prefers applets21 (/proc/self/exe) Path to BusyBox executable22 Build Options --->23 [*] Build BusyBox as a static binary (no shared libs) _install) BusyBox installation prefix36 Busybox Library Tuning --->37 (6) Minimum password length38 (2) MD5: Trade Bytes for Speed39 [*] Faster /proc scanning code (+100 bytes)40 [*] Support for /etc/networks41 [*] Command line editing42 (1024) Maximum length of input43 [*] vi-style line editing commands44 (15) History size45 [*] History saving46 [*] Tab completion47 [*] Username completion48 [*] Fancy shell prompts49 [ ] Give more precise messages when copy fails (cp, mv etc)50 (4) Copy buffer size, in kilobytes51 [ ] Use clock_gettime(CLOCK_MONOTONIC) syscall52 [*] Use ioctl names rather than hex values in error messages53 [*] Support infiniband HW54 --- Applets55 Archival Utilities --->56 [*] Make tar, rpm, modprobe etc understand .lzma data57 [*] Make tar, rpm, modprobe etc understand .bz2 data58 [*] Make tar, rpm, modprobe etc understand .gz data59 [*] Make tar and gunzip understand .Z data60 [*] ar61 [*] Support for long filenames (not need for debs)62 [*] bunzip263 [*] bzip264 [*] cpio65 [*] Support for archive creation66 [ ] dpkg67 [ ] dpkg_deb68 [*] gunzip69 [*] gzip70 [ ] rpm2cpio71 [ ] rpm72 [*] tar73 [*] Enable archive creation74 [*] Autodetect gz/bz2 compressed tarballs75 [*] Enable -X (exclude from) and -T (include from) options)76 [*] Support for old tar header format77 [*] Enable untarring of tarballs with checksums produced by buggy Sun tar78 [*] Support for GNU tar extensions (long filenames)79 [*] Enable long options80 [*] Enable use of user and group names81 [*] uncompress82 [*] unlzma83 [*] Optimize unlzma for speed84 [*] unzip8586 Coreutils --->87 [*] basename88 [*] cal89 [*] cat90 [*] catv91 [*] chgrp92 [*] chmod93 [*] chown94 [*] chroot95 [*] cksum96 [*] comm97 [*] cp98 [*] cut99 [*] date100 [*] Enable ISO date format output (-I)101 [*] dd102 [*] Enable DD signal handling for status reporting103 [*] Enable ibs, obs and conv options104 [*] df105 [*] Enable -a, -i, -B106 [*] dirname107 [*] dos2unix/unix2dos108 [*] du (default blocksize of 512 bytes)109 [*] Use a default blocksize of 1024 bytes (1K)110 [*] echo (basic SuSv3 version taking no options)111 [*] Enable echo options (-n and -e)112 [*] env113 [*] Enable long options114 [*] expand115 [*] Enable long options116 [*] expr117 [*] Extend Posix numbers support to 64 bit118 [*] false119 [*] fold120 [*] head121 [*] Enable head options (-c, -q, and -v)122 [*] hostid123 [*] id124 [*] install125 [*] Enable long options126 [*] length127 [*] ln128 [*] logname129 [*] ls130 [*] Enable filetyping options (-p and -F)131 [*] Enable symlinks dereferencing (-L)132 [*] Enable recursion (-R)133 [*] Sort the file names134 [*] Show file timestamps135 [*] Show username/groupnames136 [*] Allow use of color to identify file types137 [*] Produce colored ls output by default138 [*] md5sum139 [*] mkdir140 [*] Enable long options141 [*] mkfifo142 [*] mknod143 [*] mv144 [*] Enable long options145 [*] nice146 [*] nohup147 [*] od148 [*] printenv149 [*] printf150 [*] pwd151 [*] readlink152 [*] Enable canonicalization by following all symlinks (-f) 153 [*] realpath154 [*] rm155 [*] rmdir156 [*] Enable long options157 [*] seq158 [*] sha1sum159 [*] sleep160 [*] Enable multiple arguments and s/m/h/d suffixes161 [*] Enable fractional arguments162 [*] sort163 [*] Full SuSv3 compliant sort (support -ktcsbdfiozgM)164 [*] split165 [*] Fancy extensions166 [*] stat167 [*] Enable custom formats (-c)168 [*] stty169 [*] sum170 [*] sync171 [*] tac172 [*] tail173 [*] Enable extra tail options (-q, -s, and -v)174 [*] tee175 [*] Enable block I/O (larger/faster) instead of byte I/O 176 [*] test177 [*] Extend test to 64 bit178 [*] touch179 [*] tr180 [*] Enable character classes (such as [:upper:])181 [*] Enable equivalence classes182 [*] true183 [*] tty184 [*] uname185 [*] unexpand186 [*] Enable long options187 [*] uniq188 [*] usleep189 [*] uudecode190 [*] uuencode191 [*] wc192 [*] Support very large files in wc193 [*] who194 [*] whoami195 [*] yes196 --- Common options for cp and mv197 [*] Preserve hard links198 --- Common options for ls, more and telnet199 [*] Calculate terminal & column widths200 --- Common options for df, du, ls201 [*] Support for human readable output (example 13k, 23M, 235G) 202 --- Common options for md5sum, sha1sum203 [*] Enable -c, -s and -w options204205 Console Utilities --->206 [*] chvt207 [*] clear208 [*] deallocvt209 [*] dumpkmap210 [*] kbd_mode211 [*] loadfont212 [*] loadkmap213 [*] openvt214 [*] reset215 [*] resize216 [*] Print environment variables217 [*] setconsole218 [*] Enable long options219 [*] setfont220 [*] Support reading textual screen maps221 () Default directory for console-tools files222 [*] setkeycodes223 [*] setlogcons224 [*] showkey225226 Debian Utilities --->227 [*] mktemp228 [*] pipe_progress229 [*] run-parts230 [*] Enable long options231 [*] Support additional arguments232 [*] start-stop-daemon233 [*] Support additional arguments234 [*] Enable long options235 [*] which236237 Editors --->238 [*] awk239 [*] Enable math functions (requires libm)240 [*] cmp241 [*] diff242 [*] Enable checks for binary files243 [*] Enable directory support244 [*] Enable -d option to find smaller sets of changes245 [*] ed246 [*] patch247 [*] sed248 [*] vi249 (4096) Maximum screen width in vi250 [ ] Allow vi to display 8-bit chars (otherwise shows dots) 251 [*] Enable ":" colon commands (no "ex" mode)252 [*] Enable yank/put commands and mark cmds253 [*] Enable search and replace cmds254 [*] Catch signals255 [*] Remember previous cmd and "." cmd256 [*] Enable -R option and "view" mode257 [*] Enable set-able options, ai ic showmatch258 [*] Support for :set259 [*] Handle window resize260 [*] Optimize cursor movement261 [*] Allow vi and awk to execute shell commands262263 Finding Utilities --->264 [*] find265 [*] Enable -print0 option266 [*] Enable modified time matching (-mtime option)267 [*] Enable modified time matching (-mmin option)268 [*] Enable permissions matching (-perm option)269 [*] Enable filetype matching (-type option)270 [*] Enable 'stay in filesystem' option (-xdev)271 [*] Enable -maxdepth N option272 [*] Enable -newer option for comparing file mtimes273 [*] Enable inode number matching (-inum option)274 [*] Enable -exec option allowing execution of commands275 [*] Enable username/uid matching (-user option)276 [*] Enable group/gid matching (-group option)277 [*] Enable the 'not' (!) operator278 [*] Enable the -depth option279 [*] Enable parens in options280 [*] Enable -size option allowing matching for file size281 [*] Enable -prune option allowing to exclude subdirectories282 [*] Enable -delete option allowing to delete files283 [*] Enable -path option allowing to match pathname patterns284 [*] Enable -regex: match pathname to regex285 [*] grep286 [*] Support extended regular expressions (egrep & grep -E)287 [*] Alias fgrep to grep -F288 [*] Enable before and after context flags (-A, -B and -C)289 [*] xargs290 [*] Enable prompt and confirmation option -p291 [*] Enable support single and double quotes and backslash292 [*] Enable support options -x293 [*] Enable null terminated option -0294295 Init Utilities --->296 [*] init297 [*] Support reading an inittab file .)380 [*] Use FHS /var/lib/hwclock/adjtime381 [*] ipcrm382 [*] ipcs383 [*] losetup384 [*] mdev385 [*] Support /etc/386 [*] Support subdirs/symlinks387 [*] Support regular expressions substitutions when renaming device 388 [*] Support command execution at device addition/removal389 [*] Support loading of firmwares390 [*] mkswap391 [*] Version 0 support392 [*] more393 [*] Use termios to manipulate the screen394 [*] Ext filesystem395 [*] Reiser filesystem396 [*] fat filesystem397 [*] hfs filesystem398 [*] jfs filesystem399 [*] xfs filesystem400 [*] ntfs filesystem401 [*] iso9660 filesystem402 [*] udf filesystem403 [*] luks filesystem404 [*] linux swap filesystem405 [*] cramfs filesystem406 [*] romfs filesystem407 [*] sysv filesystem408 [*] ocfs2 filesystem409 [*] linuxraid410 [*] mount411 [*] Support option -f412 [*] Support option -v413 [ ] Support mount helpers414 [*] Support specifiying devices by label or UUID415 [*] Support mounting NFS file systems416 [*] Support mounting CIFS/SMB file systems417 [*] Support lots of -o flags in mount418 [*] Support /etc/fstab and -a419 [*] pivot_root420 [*] rdate421 [*] rdev422 [*] readprofile423 [*] rtcwake424 [*] script425 [*] setarch426 [*] swaponoff427 [*] Support priority option -p428 [*] switch_root429 [*] umount430 [*] Support option -a431 --- Common options for mount/umount432 [*] Support loopback mounts433 [ ] Support for the old /etc/mtab file434435 Miscellaneous Utilities --->436 [*] adjtimex437 [ ] bbconfig438 [*] chat439 [*] Enable NOFAIL expect strings440 [ ] Force STDIN to be a TTY441 [*] Enable implicit Carriage Return442 [*] Swallow options443 [*] Support weird SEND escapes444 [*] Support variable-length ABORT conditions445 [*] Support revoking of ABORT conditions446 [*] chrt447 [*] crond448 [*] Support option -d to redirect output to stderr449 [*] Using /usr/sbin/sendmail?450 [*] crontab451 [*] dc452 [*] Enable power and exp functions (requires libm)453 [ ] devfsd (obsolete)454 [ ] Use devfs names for all devices (obsolete)455 [*] devmem456 [*] eject457 [*] SCSI support458 [*] fbsplash459 [ ] inotifyd460 [*] last461 Choose last implementation (huge) --->462 [*] less463 (9999999) Max number of input lines less will try to eat464 [*] Enable bracket searching465 [*] Enable extra flags466 [*] Enable flag changes ('-' command)467 [*] Enable marks468 [*] Enable regular expressions469 [*] Enable dynamic switching of line numbers470 [*] Enable automatic resizing on window size changes471 [*] hdparm472 [*] Support obtaining detailed information directly from drives 473 [*] Register an IDE interface (DANGEROUS)474 [*] Un-register an IDE interface (DANGEROUS)475 [*] Perform device reset (DANGEROUS)476 [*] Tristate device for hotswap (DANGEROUS)477 [*] Get/set using_dma flag (DANGEROUS)478 [*] makedevs479 Choose makedevs behaviour (table) --->480 [*] man481 [*] microcom482 [*] mountpoint483 [*] mt484 [*] raidautorun485 [*] readahead486 [*] runlevel487 [*] rx488 [*] setsid489 [*] strings490 [ ] taskset491 [*] time492 [*] ttysize493 [*] watchdog494495 Networking Utilities --->496 [*] Enable IPv6 support497 [*] Preferentially use IPv4 addresses from DNS queries498 [ ] Verbose resolution errors499 [*] arp500 [*] arping501 [*] brctl502 [*] Fancy options503 [*] Support show, showmac and showstp504 [*] dnsd505 [*] ether-wake506 [*] fakeidentd507 [*] ftpget508 [*] ftpput509 [*] Enable long options in ftpget/ftpput510 [*] hostname511 [*] httpd512 [*] Support 'Ranges:' header513 [*] Use sendfile system call514 [*] Support reloading of global config file on HUP signal515 [*] Enable -u <user> option516 [*] Enable Basic http Authentication517 [*] Support MD5 crypted passwords for http Authentication518 [*] Support loading additional MIME types at run-time519 [*] Support Common Gateway Interface (CGI)520 [*] Support for running scripts through an interpreter521 [*] Set REMOTE_PORT environment variable for CGI522 [*] Enable -e option (useful for CGIs written as shell scripts) 523 [*] Support for custom error pages524 [*] Support for reverse proxy525 [*] ifconfig526 [*] Enable status reporting output (+7k)527 [*] Enable slip-specific options "keepalive" and "outfill"528 [*] Enable options "mem_start", "io_addr", and "irq"529 [*] Enable option "hw" (ether only)530 [*] Set the broadcast automatically531 [*] ifenslave532 [*] ifupdown533 (/var/run/ifstate) Absolute path to ifstate file534 [*] Use ip applet535 [*] Use busybox ip applet536 [*] Support for IPv4537 [*] Support for IPv6538 [*] Enable mapping support539 [ ] Support for external dhcp clients540 [*] inetd . esac statement 692 [ ] lash693 [*] msh694 --- Bourne Shell Options695 [*] Hide message on interactive shell startup696 [*] cttyhack697698 System Logging Utilities --->699 [*] syslogd700 [*] Rotate message files701 [*] Remote Log support702 [*] Support -D (drop dups) option703 [*] Circular Buffer support704 (16) Circular buffer size in Kbytes (minimum 4KB)705 [*] logread706 [*] Double buffering707 [*] klogd708 [*] logger709710 ---711 Load an Alternate Configuration File712 Save Configuration to an Alternate File。
BusyBox配置菜单的详细选项1 Busybox Settings --->2 General Configuration --->3 [ ] Enable options for full-blown desktop systems4 [ ] Provide compatible behavior for rare corner cases (bigger code)5 [ ] Assume that 1:1 char/glyph correspondence is not true6 Buffer allocation policy (Allocate with Malloc) --->7 --- Show terse applet usage messages8 [*] Show verbose applet usage messages9 [*] Store applet usage messages in compressed form10 [*] Support --install [-s] to install applet links at runtime11 [*] Enable locale support (system needs locale for this to work)12 [*] Support for --long-options13 [*] Use the devpts filesystem for Unix98 PTYs14 [ ] Clean up all memory before exiting (usually not needed)15 [*] Support writing pidfiles16 --- Support for SUID/SGID handling17 [*] Runtime SUID/SGID configuration via /etc/busybox.conf18 [*] Suppress warning message if /etc/busybox.conf is not readable19 [ ] Support NSA Security Enhanced Linux20 [ ] exec prefers applets21 (/proc/self/exe) Path to BusyBox executable22 Build Options --->23 [*] Build BusyBox as a static binary (no shared libs) //选用静态链接24 [ ] Force NOMMU build25 [*] Build with Large File Support (for accessing files > 2 GB)26 () Cross Compiler prefix //指定交叉编译工具的路径,也可以直接修改Makefile文件27 Debugging Options --->28 [ ] Build BusyBox with extra Debugging symbols29 [ ] Abort compilation on any warning30 Additional debugging library (None) --->31 [*] Enable obsolete features removed before SUSv3?32 Installation Options --->33 [*] Don't use /usr //不选该项,BusyBox将默认安装到原系统的/usr目录下面,这将覆盖掉系统原有的命令。
busybox简介与配置详情busybox简介BusyBox 是标准 Linux 工具的一个单个可执行实现。
BusyBox 包含了一些简单的工具,例如 cat 和 echo,还包含了一些更大、更复杂的工具,例如grep、find、mount 以及telnet。
有些人将BusyBox 称为 Linux 工具里的瑞士军刀.简单的说BusyBox就好像是个大工具箱,它集成压缩了 Linux 的许多工具和命令。
busybox的用法可以这样用busybox#busybox ls他的功能就相当运行ls命令最常用的用法是建立指向busybox的链接,不同的链接名完成不同的功能.#ln -s busybox ls#ln -s busybox rm#ln -s busybox mkdir然后分别运行这三个链接:#./ls#./rm#./mkdir就可以分别完成了ls rm 和mkdir命令的功能.虽然他们都指向同一个可执行程序busybox,但是只要链接名不同,完成的功能就不同。
busybox配制详解busybox的配置程序和linux内核菜单配置方式简直一模一样.熟悉用make menuconfig方式配置linux内核的朋友很容易上手.#cp busybox-1.00.tar.gz /babylinux#cd /babylinux#tar xvfz busybox-1.00.tar.gz#cd busybox-1.00#make menuconfig启动配置界面配置,配置busybox的特性、选择要包含在busybox的命令(busybox称为applet)。
下面是需要编译进busybox 的功能选项。
General Configuration应该选的选项Show verbose applet usage messagesRuntime SUID/SGID configuration via /etc/busybox.confBuild OptionsBuild BusyBox as a static binary (no shared libs)这个选项是一定要选择的,这样才能把busybox编译成静态链接的可执行文件,运行时才独立于其他函数库.否则必需要其他库文件才能运行,在单一个linux内核不能使它正常工作.Installation OptionsDon't use /usr这个选项也一定要选,否则make install 后busybox将安装在原系统的/usr下,这将覆盖掉系统原有的命令.选择这个选项后,make install 后会在busybox目录下生成一个叫_install的目录,里面有busybox和指向它的链接.其它选项都是一些linux基本命令选项,自己需要哪些命令就编译进去,一般用默认的就可以了,配置好后退出并保存。
安卓系统在超级终端下必会的命令大全目录2# BusyB ox3#安装和登录命令 re boot mo unt umo unt exi t4#文件处理命令 mkdi rgrep ddf ind mv lsd iff cmpc at ln5# 系统管理命令 dft op freek ill6# 网络操作命令 if confi gip pingn etsta ttelne troute7# 系统安全相关命令 su um ask chg rp chmo d8#其他命令t ar unzi pgunzi pB usyBo xBu syBox是标准Li nux工具的一个单个可执行实现。
Busy Box包含了一些简单的工具,例如cat和echo,还包含了一些更大、更复杂的工具,例如gr ep、fi nd、mo unt 以及telne t。
有些人将Busy Box称为Linux工具里的瑞士军刀.简单的说Bu syBox就好像是个大工具箱,它集成压缩了Linu x的许多工具和命令。
1、Bu syBox的诞生Bu syBox最初是由B rucePeren s在1996年为De bianGNU/L inux安装盘编写的。
其目标是在一张软盘上创建一个可引导的G NU/Li nux系统,这可以用作安装盘和急救盘。
2、bus ybox的用法可以这样用bu sybox#bus yboxls他的功能就相当运行ls命令最常用的用法是建立指向bu sybox的链接,不同的链接名完成不同的功能.#ln -s busy box l s#ln -s b usybo x rm#ln -s bus yboxmkdir然后分别运行这三个链接:#./ls#./rm#./m kdir就可以分别完成了ls rm和m kdir命令的功能.虽然他们都指向同一个可执行程序busyb ox,但是只要链接名不同,完成的功能就不同,很多l inux网站都提供b usybo x 的源代码下载。