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