现在的位置: 首页 > 综合 > 正文

ubuntu Development environment

2013年08月26日 ⁄ 综合 ⁄ 共 1480字 ⁄ 字号 评论关闭

一、tftp server
1. root@ubuntu:~# apt-get install tftp tftpd xinetd
2. vi /etc/xinetd.d/tftp
service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /home/share/tftproot
disable         = no
}

3. root@ubuntu:~# mkdir -p /home/share/tftproot
   root@ubuntu:~# /etc/init.d/xinetd restart
  
4. test
root@ubuntu:~# tftp localhost
tftp> get a.txt

二、samba server
1. root@ubuntu:~# apt-get install samba smbfs
2. root@ubuntu:~# cp /etc/samba/smb.conf /etc/samba/smb.conf.bck
root@ubuntu:~# vi /etc/samba/smb.conf
[homes]
comment = Home Directories
path = /home
writeable = yes
browseable = yes
read only = no
create mask = 0700
directory mask = 0700
valid users = %S

[share]
comment = Home Directories
path = /home/share
writeable = yes
public = yes
browseable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777

3. 增加网络使用者账户
smbpasswd -a wolf
4.root@ubuntu:~# /etc/init.d/smbd restart
可以在xp 下输入\\192.168.211.173\share\
三、 nfs
1. # apt-get install nfs-kernel-server
2. # vi /etc/exports
/home/share/nfsdir *(rw,sync,no_root_squash)
3. # /etc/init.d/nfs-kernel-server restart
4. test
mount 192.168.211.173:/home/share/nfsdir /mnt
四、uboot
setenv bootcmd tftp 50008000 zImage\;bootm 50008000
setenv serverip 10.42.43.1
setenv ipaddr 10.42.43.10
setenv gatewayip 10.42.43.1
setenv bootargs console=ttySAC0,115200 root=/dev/nfs
init=/init nfsroot=10.42.43.1:/home/share/nfsdir
ip=10.42.43.10:10.42.43.1:10.42.43.1:255.255.255.0:::eth0:off
五、虚拟机
bridged
eth0 IPV4 setting
shared to other computers
和开发板通信
NAT
eth0 IPV4 setting
automatic DHCP
连网和ssh

 

抱歉!评论已关闭.