- To install a Linux virtual machine:
- Virtual machines use VMware or VirtualBox. I chose VMware Workstation 9.0. Personal feeling VMware is more professional than VirtualBox, but VirtualBox is open source software. VMware Registration method Find Niang.
- I choose the Debian standard. This standard version does not take Xwindow, because I write code under Windows, only use the Linux under the compiler tool, so the smaller the Linux system, the better. Many people like to use Ubuntu. In addition, if you choose Redhat,centos then the firewall and the kernel of a selinux function seems to need additional configuration, or samba connection when a variety of uncomfortable, this configuration method to find Niang.
- Linux Download: Baidu "Open source image", and then you will search for a lot of domestic open-source sites, there are good things.
- Installing a Linux process under a virtual machine is not introduced, so easy. If not degree niang on a lot. The installation process has nothing extra to pay attention to.
- To install Samba:
- Switch to root permission to execute this command: Apt-get install Samba.
- At the prompt do you want to continue [y/n]? Enter Y. The automatic download installation of the network begins.
- Switch to the configuration directory of Samba go: Cd/etc/samba
- Back up Samba Original configuration file: CP smb.conf Conf.back, so the smb.conf back to Smb.conf.back, later Operation Smb.conf on the line.
- Edit Conf:vim smb.conf This is if prompted Bash:vim:command not found description vim is not installed. Can be installed with sudo apt-get install vim.
- The basics of vim can be seen in the tutorials on the web, and high-end use methods require in-depth learning. My focus is no longer vim use, so ignore.
- Find Share Definitions section in conf modify [change to red string]
- Read Only = yes
- Create mask = 0777
- [Netlogon] section
- To remove or open the Netlogon section.
- The path section changes to the location of the Samba folder that you need to set up, I like to be in the root directory so for path =/samba "This way, I need to have a samba-named folder under my root directory, and to have sufficient permissions, I set the permissions of the/samba directory to 777"
- Read only changes from Yes to No.
- [Printers] section: With a semicolon in front, that is to turn off this configuration.
- [print$] section: With a semicolon in front, that is to turn off this configuration.
- To create a/samba folder in the root directory: Mkdir/samba, note To modify permissions: chmod 777 Samba.
- To see if the permissions for/samba are set successfully: Ls-al | grep Samba is a success if it's for drwxrwxrwx.
- Switch to/ETC/INIT.D directory: CD/ETC/INIT.D
- Then execute the./samba restart "Restart Samba" will appear with the following prompt:
- [OK] Stopping Samba daemons:nmbd smbd.
- [OK] Starting Samba daemons:nmbd smbd.
- Verify use: Enter \ \ and Linux's IP address in Windows Explorer's window for the Netlogon directory. If you have this directory, this directory is the mapping of the samba files in your Linux root directory, if there is no explanation for your configuration or if there is a problem. I can go to the Netlogon directory after I follow the above operation, and the new edits will be kept in place, and the procedure is not error-free. Please leave a message if you have questions.
- Reprint: http://mcustation.com/arm-s3c2440-linux-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E7%9A%84%E5%BB%BA%E7%AB%8B.html
The establishment of the ARM s3c2440 Linux development environment