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 @   *^VV^*  阅读(686)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示