1. Add yourself to the sudo user group. Use the root user chmodo + w/etc/sudoersvi/etc/sudoers to copy rootALL = (ALL) ALL to skykingf
1. Add yourself to the sudo user group.
Use root User
Chmod o + w/etc/sudoers
Vi/etc/sudoers
Copy root ALL = (ALL) ALL
Is
Skykingf ALL = (ALL) ALL
After wq, save
Chmod o-w/etc/sudoers
After you log on again, the skykingf user can use sudo.
2 disable seLinux
Sudo vi/etc/selinux/config
Change SELINUX = enforcing to disabled.
3. Disable the Firewall
3. Configure Samba
Yum install samba
Sudo pdbedit-a skykingf adds skykingf as a samba user
Modify sudo vi/etc/samba/smb. conf
Workgroup = WORKGROUP
After sudo smbd restart, you can use windows to access the Samba service in linux.
4 install ARM-LINUX-GCC
Find the arm-linux-gcc-4.3.2.tgz package.
Upload data using samba to the skykingf directory
Extract
Sudo arm-linux-gcc-4.3.2.tgz-C/zxvf/
Sudo vi/etc/profile
In
# Path manipulation
If ["$ EUID" = "0"]; then
Pathmunge/sbin
Pathmunge/usr/sbin
Pathmunge/usr/local/sbin
Else
Pathmunge/usr/local/sbin after
Pathmunge/usr/sbin after
Pathmunge/sbin after
Fi
Add later
Pathmunge/usr/local/arm/4.3.2/bin
Then you can repeat login.
5. install and configure TFTP
Yum install tftp-server xinetd tftp
Use the default/var/lib/tftpboot as the tftp directory,
After chmod a + w tftpboot, you can put the file to be shared in this directory.
6. Configure NFS
Modify/etc/exports
Add the directory to be shared, such:
/Home/skykingf/develop/rootfs 192.168.2.0/24 (rw, no_root_squash) * (ro)
Then, use exportfs-rv to re-mount the directory to use nfs as rootfs.