buildroot 制作linux文件系统,并添加telnet 、ssh

// make menuconfig

buildroot中选择如下软件包

(主要是net-tools iw工具包)

Target options --->
  Target Architecture (ARM (little endian)) --->
  Target Binary Format (ELF) --->
  Target Architecture Variant (cortex-A8) --->
  Target ABI (EABI) --->
  Floating point strategy (VFPv3-D16) --->
  ARM instruction set (ARM) --->
Toolchain --->
  Toolchain type (External toolchain) --->
  Toolchain (Arago ARMv7 2011.09) --->
System configuration --->
  (Aplex) System hostname
  (Welcome to Aplex) System banner
//... ...
  [*] Enable root login with password
Target packages --->
  Networking applications --->
  [*] openssh


// make busybox-menuconfig
Networking Utilities --->
  [*] telnet
  [*] Pass TERM type to remote host
  [*] Pass USER type to remote host
  [*] telnetd
  [*] Support standalone telnetd (not inetd only)
  [*] Support -w SEC option (inetd wait mode)
  [*] tftp

 

制作好文件系统后,修改相关ssh 的配置:
output/target/etc/ssh/sshd_config最后添加:

PermitRootLogin yes
PermitEmptyPasswords yes

修改/etc/profile文件,执行以下命令:

vi /etc/profile

在最后一行插入,如下代码(#号前显示当前路径):

export PS1='[\u@\h: \w\a\]$ ' #注意要用(')

 

posted @ 2023-03-08 13:57  *^VV^*  阅读(514)  评论(0编辑  收藏  举报