- 1. Update to the latest package
|
open up System-administration Update Manager
click on Settings
set ' Release upgrade ' to ' never '. That makes the option of upgrade to Karmic go away.
close the Settings dialog box.
click on ' check ' to check for upgraded packages. It'll look for packages, that's upgraded from the version, that's installed on your box.
choose to install the upgrades. This would take a while on a freshly installed box. |
- 2. Installing the Code editing Tool
|
sudo apt-get install VIM-GTK |
- 3. Installing Network Tools
TFTP Server
- Install TFTP server and client (TFTP-HPA is client, TFTPD-HPA is server side)
sudo apt-get install TFTP-HPA TFTPD-HPA |
- Prepare the TFTP server, edit the/ETC/DEFAULT/TFTPD-HPA, and modify the contents as follows:
#/ETC/DEFAULT/TFTPD-HPA
Tftp_username= "TFTP"
tftp_directory= "/tftpboot"
Tftp_address= "0.0.0.0:69"
Tftp_options= "-l-c-S" |
- Create a TFTP directory and restart the TFTP service
sudo mkdir/tftpboot
sudo chmod 777/tftpboot
sudo service tftpd-hpa restart |
- Test
$TFTP TFTP server address
>get filename (fetch file)
>put file name (send file)
>quit (Exit) |
- U-boot parameters
Set Bootcmd tftpboot $loadkernaddr image_dir/zimage\; Bootm loadkernaddr
Example: Set Bootcmd tftpboot c0008000 192.168.1.10:kernel.img\; Bootm c0008000 |
Server for NFS
- Install Server for NFS
sudo apt-get install nfs-kernel-server
- Compounding/etc/exports
/rootfs * (rw,sync,no_root_squash)
- restarting NFS services
Sudo/etc/init.d/portmap Restart
Sudo/etc/ini.d/nfs-kernel-server Restart
- display NFS shared directory
Showmount–e
mount and uninstall NFS directory
sudo mount-t NFS Server for NFS Address:/rootfs/mnt
sudo umount/mnt
- u-boot parameter
Example:
|
|   |
|   |
SAMBA Server
|
1: Install SAMBA Server and client
sudo apt-get install Samba
sudo apt-get install Smbfs sudo apt-get install System-config-samba |
|
2: Modify the configuration file
sudo cp/etc/samba/smb.conf/etc/samba/smb.conf.bck
sudo vim/etc/samba/smb.conf
Leave only [global] |
|
3: Open the Compounding tool
sudo system-config-samba
Preparing Samba users and shared directories |
|
4: Restart Samba
SUDO/ETC/INIT.D/SMBD restart |
|
5:windows under \\samba server address |
Ssh
|
sudo apt-get install openssh-server openssh-client |
Modify Host Name
sudo vim/etc/hostname
Embedded Linux Basic Development environment construction