ARM_linux development environment establishment (2)

Publisher:dswecdLatest update time:2016-07-25 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Install FTP, SSH, and NFS server software - apt-get.
Install VMware Tools and share files between the local machine and the virtual machine

Installing VMWare Tools has several advantages:

.When transferring files between Host OS and Guest OS, you only need to drag the mouse. When switching between Host OS and Guest OS, you no longer need to press Ctrl + Alt.

The purpose of installing VMWare Tools this time is the third point: when switching between the local machine and centos, you can switch directly without pressing ctrl+Alt, which will be much more convenient, haha,

Here we introduce the settings under the Windows host and Linux client.

  1. Install vmtools for Linux

  Select vmware workstation program menu vm>install vmware tools...

  Start Linux in the guest computer and execute:

   mkdir /mnt/cdrom
   mount /dev/cdrom /mnt/cdrom
   cd /mnt/cdrom
   tar -xzvf vmwareTools-5.0.0-12124.i386.tar.gz -C /tmp (unzip the installation file to /tmp)
   cd /tmp/vmware-tools-distrib
   ./vmware-install.pl

  Here, the installation program will ask a series of setup questions. In most cases, the installation can work properly with the default configuration. Therefore, it is recommended to press Enter to select the default configuration for each question, or enter the default prompt path and press Enter. After running, you can enter the /mnt directory, and you should see an additional folder hgfs.
2. Set the shared directory of host computer

  Switch to Windows desktop in ghost computer, select

  VM>Settings>Options>Shared Folders>Properties in vmware workstation program menu

  , click "add" button in the lower right corner of the dialog box, click "Next", enter the name of the shared directory in the text box "name" (for example, if you want to share drive D, you enter a shared name, any name is fine, it's just a symbol. Then you can select a corresponding drive letter or file. This drive or folder is the file shared by winds and linux. It can be seen in both systems.)

  3. Use of shared folder directory

  Switch to the linux system of ghost computer, execute:

   cd /mnt/hgfs
   ls,

  you can see the folder or drive letter you shared under winds. And you can use it directly. You can read and write in both winds and linux. At the same time, you will find that you have to use ctrl+alt to switch the mouse before. After installing this tool, the mouse can be switched freely.

PUTTY tool: It can realize remote login operation without entering the virtual machine interface. It can also easily copy and paste instructions.

Fedora vsftp installation auto-start and system configuration

1. Check whether the vsftpd program has been installed on the current system

  Before installing, you should first use the rpm command to check whether the system has already installed the program. The command is as follows:

  root@xxxx]rpm  -qa|grep vsftpd Check whether vsftpd is installed.

 After executing this command, if vsftpd has been installed in the current system, the version shown in the figure will be displayed; if it is not installed, no information will be displayed after executing the above command.

2 Installing Fedora vsftp

#yum install vsftpd. Click yes all the way, and finally it will prompt that the installation is successful.

3. Configure Fedora vsftpd.conf

[root@localhost ~]# vim /etc/vsftpd/vsftpd.conf The configuration of the body will be covered below.
  If you want anonymous users to upload and download

  Regarding anonymous uploading, we first need to modify vsftpd.conf, which is located in the /etc/ directory. It may be /etc/vsftpd.conf or /etc/vsftpd/vsftpd.conf. It depends on your system environment;

  First: we need to modify vsftpd.conf and make sure there are the following lines;
  anonymous_enable=YES
  anon_upload_enable=YES
  anon_mkdir_write_enable=YES

  anon_umask=022 (077)
  Secondly: create a folder under the ftp user's home directory and change its permissions to fully open;
Where is the ftp user's home directory? 目录: /var/ftp/pub /var/ftp/pub /var/ftp/pub English: As we have said before, we need to check it through /etc/passwd; we can also check it through finger ftp;
[root@localhost beinan]# finger ftp
Login: ftp Name: FTP User Directory: /var/ftp Shell: /sbin/nologinThis means that the ftp user's home directory is in /var/ftp. We need to create a directory under this directory and then set its permissions to be readable, writable and executable by any user. Generally, in the distribution, there is a /var/ftp/pub directory. If not, you can also create one yourself. After modifying the configuration file, as long as the permissions of any directory under /var/ftp are turned on, it can be used for anonymous uploading and downloading. For example, if you want anonymous users to upload and download in /var/ftp/pub, you can turn on the permissions of /var/ftp/pub. If there is no such directory, you have to create one yourself. [root@localhost ~]# mkdir /var/ftp/pub



[root@localhost ~]# chmod 777 /var/ftp/pub

4. Notes
(1) Firewall
(2) SELinux
Enter the following command:
[root@localhost ~]# vi /etc/selinux/config
The following is the specific content of the file:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing #The original configuration of this line is
SELINUX=disabled #This is manual input


# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

Also remember: iptables -F to turn off the firewall again.

5. Start vsftpd
Method 1: # service vsftpd startMethod
2: # /etc/init.d/vsftpd restart
          (or # /etc/init.d/vsftpd start)
Method 3: # /usr/sbin/vsftpd &
             # /usr/local/sbin/vsftpd &
The first step in method 3 can be executed, but the second line cannot. I saw it on the Internet. So the first two methods are enough.

If users are allowed to log in anonymously, you need to create user ftp and directory /var/ftp
# mkdir /var/ftp
# useradd -d /var/ftp/ftp

6. Check whether vsftpd is started
Method 1:
[root@localhost ~]# pgrep vsftpd
4759Method
2:
[root@localhost ~]# ps -ef
root 4759 1 0 20:33 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

7. Shut down vsftpd service
Method 1:
[root@localhost ~]# kill 4759Method
2:
[root@localhost ~]# pkill vsftpdMethod
3:
[root@localhost ~]# /etc/init.d/vsftpd stop

iptables -F turns off the firewall.


Keywords:ARM Reference address:ARM_linux development environment establishment (2)

Previous article:Simple recording of system clock and timer
Next article:ARM_Linux embedded development environment configuration

Recommended ReadingLatest update time:2024-11-15 16:48

ARM Getting Started Notes (4)
Keyboard input - I/O input experiment I. Experimental purpose To correctly read the pin status of PIO, so that when a key is pressed, the LED lights up, otherwise it goes out. II. Experimental procedure and parameter settings 1> The connector option settings and startup code are the same as the previous
[Microcontroller]
ARM cross-compilation of x264 library under Linux
1. Preparation      1. Download the source code   of x264 library: http://www.videolan.org/developers/x264.html The author's current version is x264-snapshot-20160511-2245 2. Compiler arm-none-Linux-gnueabi-gcc 2. Compilation steps 1. Unzip the installation package tar -xzvf last_x264.tar.bz2 cd x264-snapshot-2016
[Microcontroller]
Building Qt Creator's ARM development environment under Ubuntu 9.1 (2)
5. Install Qt-creator-1.3.1 Copy the downloaded qt-creator-linux-x86-opensource-1.3.1.bin file to a directory (such as the previous /root/tmp directory), chmod 777 qt-creator-linux-x86-opensource-1.3.1.bin ./qt-creator-linux-x86-opensource-1.3.1.bin Until the installation is complete.
[Microcontroller]
How to design and compile software in an energy-efficient way on the ARM platform
    Abstract: With all the emphasis on battery life in portable devices, it seems odd that so few software engineers actually do anything to reduce energy consumption in their daily project tasks. I guess those who do think about this topic probably do so out of honor or shame. It's time to make some changes. As the c
[Microcontroller]
How to design and compile software in an energy-efficient way on the ARM platform
Learn the differences between ARM, DSP and FPGA in three minutes
ARM (Advanced RISC Machines) is a well-known company in the microprocessor industry. It has designed a large number of high-performance, low-cost, low-energy RISC processors, related technologies and software. The ARM architecture is the first RISC microprocessor designed for the low-budget market. It is basically the
[Microcontroller]
Learn the differences between ARM, DSP and FPGA in three minutes
A Brief Analysis of Three Widely Used Embedded Operating Systems on ARM CPU
Embedded operating system is the software foundation of ARMCPU. From 8-bit/16-bit single-chip microcomputer to 32-bit embedded processor represented by ARMCPU core, embedded operating system will replace the traditional manually compiled monitoring program or scheduler and become an important basic component. More imp
[Microcontroller]
A Brief Analysis of Three Widely Used Embedded Operating Systems on ARM CPU
Samsung arm2440 driver LCD program file analysis
The following is an analysis of the program execution flow: The program entry is: head.s file, which is mainly the main program entry + copy all (actually not more than 16K), set 6 interrupt vectors, turn off the watchdog (actually a long jump in C language), initialize the clock, sdram memory initialization, nandflas
[Microcontroller]
Samsung arm2440 driver LCD program file analysis
fastcall and asmlinkage macros in linux kernel
Kernel version: 2.6.14 In the Linux kernel, we often see FASTCALL and armlinkage. What are the differences between them? Let's analyze them in detail. In the standard C system, the formal parameters of a function involve the problem of parameter storage when actually passing in parameters. So where are these paramet
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号