There are two ways to transfer files between windows and Ubuntu.

Table of contents

1. Implement directly by sharing files

2. Drag and drop files directly from the Windows desktop to the Ubuntu desktop through VMware tool

3. Summarize the differences between modifying configuration files and changing logins


1. Implement directly by sharing files

 

First, go to the options in the virtual machine settings -> Shared files -> Always enable -> Add the host shared folder directory (I set the desktop file)

Check Ubuntu files first

The hgfs file in the mnt folder is usually an empty file, indicating that the setting has not been successful.

 In the middle enter:

sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other

Note: Since it needs to be executed every time it is restarted, this command can be placed in /ect/rc.local (this file is a file that will be executed at startup)

If /ect/rc.local is empty, add the following statement and add execution permissions sudo chmod +x /etc/rc.local

#!/bin/sh -e
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other

Then restart and there is no need to repeat this operation.

Final display:

 

 

2. Drag and drop files directly from the Windows desktop to the Ubuntu desktop through VMware tool

First make sure you have downloaded the VMware Tools tool

首先移除系统原来的虚拟工具

sudo apt-get autoremove open-vm-tools

安装桌面版的虚拟工具

sudo apt-get install open-vm-tools-desktop

Some Ubuntu can directly drag and drop files here. If you still cannot drag and drop files, continue with the following operations.

There are two ways to achieve this

1. Switch users and select xorg type to log in

(1) First, let’s introduce what xorg is.

Xorg (also known as X.Org Server) is an implementation of the open source X Window System for providing graphics display and user input. It is one of the most commonly used graphics servers among many Linux distributions. The main functions of Xorg include the following aspects:

  1. Graphical display: Xorg is responsible for managing and presenting the graphical interface and drawing graphical elements to the display. It provides basic support for graphical elements such as windows, menus, buttons, icons, etc., allowing users to interact with the graphical interface through input devices such as mouse and keyboard.

  2. Multi-user environment: Xorg supports a multi-user environment, allowing multiple users to use the graphical interface on the same computer at the same time. Each user can use the graphical interface by logging into their account and starting an independent Xorg session.

  3. Window management: Xorg provides window management functions, allowing users to open, close, move, resize and switch windows. It manages the layers, focus, and interaction methods of windows so that users can easily switch and operate between different applications.

  4. Input device management: Xorg is responsible for receiving and processing events from input devices (such as keyboard, mouse, touchpad, etc.) and passing them to the corresponding applications. It provides an interactive interface with input devices, allowing users to interact with graphical interfaces through input devices.

In general, Xorg is a graphics server that provides graphics display and user input support. It provides a graphics-based user interface for Linux and other Unix-like systems, and provides rich functionality and flexibility, allowing users to conveniently use and manage graphical applications on their computers.

Simply put, it is a software package displayed by a default server.

(2) Log out the user and log in again

 

(3) Select Ubuntu Xorg mode and log in directly to drag and drop files.

 2. Repair configuration file

(1) First introduce the configuration file that needs to be modified: "/etc/gdm3/custom.conf"

Is the configuration file of GNOME Display Manager (GDM). GDM is a common login manager in Linux operating systems. It is responsible for providing a user login interface and handling user login sessions.

Please note that editing this file requires root or administrator privileges. After editing is complete, you may need to restart the system or reload the GDM service for the changes to take effect.

Modifying the configuration file is relatively simple. Just enter the command line directly in the interrupt to find it.

sudo gedit /etc/gdm3/custom.conf

(2) If exists

sudo: gedit: command not found

The reason is that the gedit file is damaged. Just uninstall it in the terminal and then install it.

sudo apt-get remove gedit

sudo apt-get install gedit

(3) waylandEnable =false can cancel the previous comment (#).

 

 Then restart the virtual machine (reboot)

3. Summarize the differences between modifying configuration files and changing logins

Setting WaylandEnable=falseto falsemeans disables Wayland as the default display server and uses traditional Xorg as the graphics display server.

Wayland and Xorg are two different graphics display protocols and architectures. Wayland was designed as a more modern, simpler graphics display protocol intended to replace the traditional Xorg. Because of its design advantages, Wayland delivers better performance, lower latency, and better security.

However, although Wayland may become the mainstream display server in the future, some applications and graphics drivers may still have a dependency on Xorg. In some cases, disabling Wayland and using Xorg may better suit your needs.

By WaylandEnablesetting to false, you can tell the system to use Xorg instead of Wayland when logging in. Doing this ensures that the system defaults to traditional Xorg as the graphics display server, keeping it compatible with your applications and drivers.

It should be noted that the specific configuration and settings may vary depending on the operating system. Please make sure to follow the documentation or recommendations for the relevant operating system when editing the configuration file.

Show results

 

 

Guess you like

Origin blog.csdn.net/apple_71040140/article/details/131710365