分类:
2012-04-23 13:10:21
原文地址:嵌入式linux基本开发环境搭建 作者:Cheney-Xu
1. 更新到最新的软件包
Open up System -> Administration -> Update Manager Click on Settings Open the Updates Tab Set 'Release upgrade' to 'Never'. That makes the option to upgrade to Karmic go away. Close the settings dialog box. Click on 'Check' to check for upgraded packages. It will look for packages that are upgraded from the version that is installed on your box. Choose to install the upgrades. This will take a while on a freshly installed box. |
2. 安装代码编辑工具
sudo apt-get install vim-gtk |
3. 安装网络工具
TFTP服务器
1. 安装TFTP服务器及客户端(tftp-hpa是客户端,tftpd-hpa是服务器端) |
2. 配制TFTP服务器,编辑/etc/default/tftpd-hpa,修改后的内容如下: # /etc/default/tftpd-hpa
TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="-l -c -s" |
3. 创建TFTP目录并重启TFTP服务 sudo mkdir /tftpboot sudo chmod 777 /tftpboot sudo service tftpd-hpa restart |
4. 测试 $tftp tftp服务器地址 >get 文件名(取文件) >put 文件名(发送文件) >quit (退出) |
5. U-boot参数 例子:set bootcmd tftpboot c0008000 192.168.1.10:kernel.img\; bootm c0008000 |
NFS服务器
1. 安装NFS服务器 2. 配制/etc/exports 3. 重启NFS服务 |
4. 显示NFS共享目录 |
5. U-boot参数 |
SAMBA服务器
1:安装SAMBA服务器及客户端 |
2:修改配制文件 |
3:打开配制工具 配制samba用户和共享目录 |
4:重启SAMBA sudo /etc/init.d/smbd restart |
5:windows下 服务器地址 |
SSH
sudo apt-get install openssh-server openssh-client |
修改主机名
sudo vim /etc/hostname |