老是没有一个完整的环境搭建的方法,今天总结下
安装相关软件包
用下面的命令安装开发环境需要的软件包
sudo apt-get install xinetd tftpd nfs-kernel-server minicom build-essential libncurses5-dev autoconf automake
配置NFS目录
1、打开 /etc/exports 在文件末添加下面一行
/home/user/workdir/filesys *(rw,no_root_squash,no_all_squash,sync)
2、运行命令
sudo usr/sbin/exportfs –av
3、重启nfs服务
/etc/init.d/nfs-kernel-server restart
配置tftp
在/etc/xinetd.d目录下创建文件tftp,将下面内容拷贝到文件内
# default: off
# description: The tftp server serves files using the Trivial File Transfer \
# Protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
}
服务操作命令
tftp服务
# /etc/init.d/xinetd {start|stop|status|reload|force-reload|restart}
nfs服务
# /etc/init.d/nfs-kernel-server {start|stop|status|reload|force-reload|restart}