We often encounter this problem, the high version of VMware encountered in the low version of Linux, used to be more keyed, such as the low version of Linux installed in the high version of VMware,
1. Cannot display virtual machine in full screen
2. Each time you switch out, always press the Ctrl+alt key
3. Particularly hateful is the inability to transfer documents directly
In view of the above situation, this blog is only for the third issue, how to the VMware Linux and outside the window to transfer files, a lot of methods, there are
1. Create a shared directory
2. By setting up FTP, which is the server that uses Windows as an FTP
3. Build the TFTP of Linux, that is, the server that used Linux as TFTP
I have only tried the above three methods, others have not tried, for the time being not discussed here.
Here I say the pros and cons , the first way to create a shared directory, I just tried in fedora, this is to watch the video to do, the video is through the graphical interface to operate, but the creation of a shared directory is only for this fedora more practical, It's hard to transplant it into another version of Linux, but it's only for people like me who are not very good at Linux. So for this kind of transplant bad method I abandoned. The second way, I want to build an FTP server on Windows, and then your Linux as a client, upload files to the server on Windows, then the files on Windows by you what to do, But when I want to transfer a folder from Linux to the Windows FTP server, there are two problems, the first, I want to send a non-compressed folder is not transferred, only a single transmission, so you want to transfer an entire file, You have to find a way to make it a compressed file in Linux, and then you can send it on the command line, it seems to be feasible, but the problem is, I Linux in the command line to transfer the past files, on the Windows FTP Open will be an exception, whether it is normal. C,. TXT file or you have compressed tar.bz2 files and so on, there will be such an exception, the specific reasons I do not know, may be Windows comes with the FTP a bit of a problem, haha. There is no problem with two of Windows communicating files.
So in view of the disadvantages of both methods, I strongly recommend a method here, that is, the third way to build a TFTP server in Linux, the process of establishing this TFTP server is not set by the GUI of Linux, this is set by the command line, Why this approach is introduced because it is better to set up portability with the command line.
First step: First shut down your Linux firewall and SELinux, here's the command I will not introduce, Baidu can.
Step two: First use the command line to see if your ftp-server is installed, with the command: RPM-QA | grep tftp-server
This prompt will appear if the installation is successful.
Step three: If not installed, use two commands to perform the following:
Yum Install xinetd
Yum Install Tftp-server
Fourth step: Use the command to see if the installation was successful. That
Rpm-qa | grep tftp-server
After success, execute the command:
Vim/etc/xinetd.d/tftp
Modified files, such as modified two locations, one is Server_args, specified in the/tftpboot directory, of course, you want to create a new directory under the root directory, which directory is determined by you, the second position is disable, "Do not enable it", Of course to choose No, is to let him work meaning. Save to exit. Also note to do: chmod 777/tftpboot, change the permissions of the TFTP directory
Fifth step: Execute two commands:
Service xinetd Restart or execute
/ETC/INIT.D/XINITD restart
Then use the command: netstat-a | grep tftp, to see the status of the TFTP server, appears as follows:
Now that the TFTP for Linux is configured, we'll test it on Windows and on another Linux machine:
Test on Windows:
To make sure that the TFTP client for Windows is turned on, if you open the DOS interface: you enter the TFTP command, DOS reminds you that TFTP is "not an internal or external command, nor is it a running program", Now, let's do a little configuration on Windows: The configuration process is as follows: first go to the interface in the Control Panel, then click "Turn Windows features on or off" and check the TFTP client to make sure.
Now that you enter TFTP in the DOS interface, the following interface appears: The client that describes the TFTP of Windows can be used.
How to use the main is two commands, the first one is to download files from the TFTP server side of Linux: command: TFTP 192.168.1.106 get B.C, here 192.168.1.106 is the IP of the Linux server, my Windows IP It's 192.168.1.105. Upload command: tftp 192.168.1.106 put B.C m.c at first I thought it was strange to see the put upload command, but then I finally figured out that B.C was my Windows directory C:\Users\ Administrator directory of a file, want to upload it to the Linux/tftpboot directory, but why there is a main.c, if I am on the Linux/ Tftpboot Directory does not main.c this file, first put a command to enter the error commands:
Let me analyze the cause of the error, one input tftp 192168.1.106 put B.C,,,,, the other input is tftp 192.168.1.106 put B.C m.c two command prompt error message is the same, but the command is not the same, Just the second command is a M.C file, the error message is "Server error: File not found", and then see the TFTP under DOS command input format,
Look at the following example, Uers19.txt is a vax1 file, so you can use the PUT command to transfer the file, so the previous error command should know how to change it, namely: Now Linux in the first command: Vim m.c save quit, do not write anything, and then use the DOS command: TFTP 192.168.1.106 put B.C m.c execute. See Run:
What is still wrong, prompt "Server error: Permission denied", is m.c permission to write, then you in Linux chmod 777 M.C can, in the second execution:
This time is really successful, you can also view the Windows directory under the B.C and Linux m.c file content is the same, this completes the copy of the file ...
Similarly, I can upload and download data to 192.168.1.106 's TFTP server Linux via the corresponding put and get commands on another Linux, but it is not possible to upload an entire directory or download an entire directory. Because all the files in Linux, you can only upload one or download one of the simplest files, do not include subdirectories, so to upload a whole project can be used to compress it with the tar command, and then this kind of file is best only in the Linux between each other, Linux to the Windows a compressed file, always a bit of a problem, so you want to pass a compressed file, or now in the Linux in each other. Maybe you use another Linux can drag files directly to Windows, that is not possible. Oh, although the whole set down, is a little trouble, in short, feasible.
How Linux inside VMware interacts with Windows to file files