ubuntu嵌入式环境搭建

老是没有一个完整的环境搭建的方法,今天总结下


安装相关软件包
用下面的命令安装开发环境需要的软件包
    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}



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值