Android Learning "Android kernel compiled Linux communication environment build"

Source: Internet
Author: User

Blog: Http://blog.csdn.net/muyang_ren
Linux system: Ubuntu Kylin 1404

Installation configuration and use of Server for NFS:
To install Server for NFS:
1-> installing NFSServer port mappings and services
sudo apt-get install nfs-kernel-server

2-> Restart Portmap service first
sudo /etc/init.d/portmap restart

3-> edit/etc/exports, add the target system's root file system mapping directory, if the target system root file system finally mapped to/opt/rootfs, then
Open File/etc/exports, add the following:
/opt/rootfs *(subtree_check,rw,no_root_squash,async)

4-> Restart Service:
$sudo /etc/init.d/nfs-kernel-server restart
$sudo exportfs –a (最好每修改过/etc/exports 后需要执行一次)

3. Test:
1-> Create a mount point in the user's home directory:
2-> mount File System:/opt/rootfs
sudo mount 192.168.7.5:/opt/rootfs /mnt
3-> See if you can see the contents of Rootfs under MNT, and if you can see, NFS OK
4-> Uninstall: sudo umount/mnt

1. Create a shared directory in Linux and modify access permissions:
mkdir ~/samba
sudo chmod 777 samba/ -R
2. Installation:
sudo apt-get install samba
3. Open configuration file:/etc/samba/smb.conf
sudo vim /etc/samba/smb.conf
4. Add the following content:
[home-samba]:w
path = /home/lhy/samba
available = yes
browseable = yes
public = yes
writable = yes
#valid users = lhf

4. Save exit and restart Samba service:
sudo /etc/init.d/smbd restart
5. Test:
In Windows:
Start-"Run:
\192.168.7.5

6. Set Samba password (optional)
1. Add the following to the configuration file/etc/samba/smb.conf:
[home-samba]:w
path = /home/lhy/samba
available = yes
browseable = yes
public = yes
writable = yes
valid users = lhy

2 "Set Samba password:
sudo smbpasswd -a lhy
3 "Restart Samba services:
sudo /etc/init.d/smbd restart

SSH installation:
sudo apt-get install openssh-server

Installation and configuration of the TFTP server:
1. Create the TFTP working directory and modify the permissions
sudo mkdir /tftpboot
sudo chmod 777 /tftpboot
cd /tftpboot
touch test

2. Installation:
sudo apt-get install tftp tftpd openbsd-inetd

3. Open the configuration file/etc/inetd.conf:
sudo vim /etc/inetd.conf

4. Add the following content:
TFTP dgram UDP wait nobody/usr/sbin/tcpd/usr/sbin/in.tftpd /tftpboot

5. Open File/etc/default/tftpd-hpa (no new), add the following:
RUN_DAEMON="yes"
OPTIONS = "-l -s /tftpboot"

6. Restart the service:
sudo /etc/init.d/openbsd-inetd restart

7. Test:
Download zimage at the user home directory location
cd ~
tftp 127.0.0.1 本机登陆
tftp> get test 下载文件test
出现警告,并成功下载到当前目录就成功了
tftp> quit 退出tftp服务器

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Learning "Android kernel compiled Linux communication environment build"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.