Busybox and benchmark Configuration

Source: Internet
Author: User

Busybox and benchmarkconfiguration

Configure Linux Kernel

(Initrd) support (in block device). In addition, it is best to compile the ext3 file system into the kernel.

 

Configure busybox (use 1.18.3)

General Configuration

> Show verbose applet usage messages

> Runtime SUID/SGID configuration via/etc/busybox. conf

Build opions

> Build busybox as a static binary

Installationoptions

> Don't use/usr

(Skip the tool selection first)

 

Compile busybox

# Make

# Make install

 

Create initrd (cpio format)

1) Copy busybox

# Mkdir ramdisk

# Cd ramdisk

# Mkdir etc USR vartmp proc home root Dev

# Cp-R ../busybox-1.18.3/_ install /*.

 

2) Device Files

# Cp-R/dev/console Dev

# Cp-R/dev/nulldev

# Cp-R/dev/zerodev

# Cp-R/dev/ptsdev

# Cp-R/dev/ptmxdev

 

3) configuration file

# Cp-R ../busybox-1.18.3/examples/bootfloppy/etc/* ETC/

# Cp/etc/passwdetc/

# Cp/etc/shadowetc/

By default, the root user logs in using/bin/bash, but busybox does not have Bash. Modify etc/passwd:

Root: X: 0: 0: Root:/root:/bin/ash

Use ash to log on to root

 

4) generate initrd

# Chown root. rootbin/busybox

# Chmod 4755bin/busybox

# Shgen_initramfs_list.sh ramdisk/> filelist

# Gen_init_cpiofilelist> rootfs. cpio

# Gzip rootfs. cpio

Rootfs.cpio.gz is a usable ramdisk.

 

FTP Configuration

1) choose whether to configure busybox

Networking utilities->

> Ftpd

> Inetd

2) append in/etc/inetd. conf:

21 stream tcpnowait root ftpd-W/tftp_ftp_dir

/Tftp_ftp_dir is the FTP root directory.

3) append in/etc/init. d/RCS:

Inetd

 

Telnet configuration

1) linuxkernel must be configured

Config_unix98_ptys = y

Networking utilities à

Select [*] support standalone telnetd (not inetdonly)

Login/password managementutilities

Remove [] Support for/etc/nologin

Remove [] Support for/etc/seruretty

 

2) There are/dev/pts,/dev/ptmx files

3) busybox must be configured

Config_login

Config_feature_suid

4) modify the/etc/init. d/RCS File

Mount-T devpts/dev/PTS

Telnet-L/bin/login

 

 

Port netserve (netperf server)

1) locate NETServer and its dependent Library

# Whereis NETServer

NETServer:/usr/local/bin/NETServer

# LDD/usr/local/bin/NETServer

2) Copy NETServer and dependent libraries to the specified location

3) Modify/etc/init. d/RCs and add:

/Usr/local/bin/NETServer

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.