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.
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
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Questions about the constant current source composed of op amp and MOS tube
- 28 core issues of 5G
- How much year-end bonus did you get in 2019?
- CS+ compilation error, prompting that the specified file cannot be found, please help
- CCS7.3 Installation and Use Tutorial
- 16 times voltage rectifier circuit, the output voltage is low after each welding (30% of the design), occasionally one or two can reach the design purpose
- 【DFRobot motor driver】+DC motor driver
- Have you noticed that RISC-V has begun to show its strength in the energy field, eating up the cake at a rapid speed?
- Arteli-Migration Manual_SXX32F0xx&GX32F3x0_to_AT32F415_V1.0
- MSP430 MCU Development Record (22)