My laptop has no way to install dual-system due to previous partitioning, which leads to Linux debugging.ProgramInconvenience. If you have such a situation or many things need to be processed simultaneously in Windows and Linux, you can install a virtualbox virtual Ubuntu environment locally like me, after configuring the corresponding development environmentCodeDevelopment and debugging.
Main Ideas
Use Linux in virtualbox as a server, connect it with putty, and debug it slowly. You can use eclipse to edit local files and use file sharing or SCP, to the Linux server in the VM.
Configuration steps
- According to the introduction of four network settings for virtualbox and the host machine, set the Linux Internet Access Mode in virtualbox to the bridged networking mode, in the host machine, you can regard this virtual machine as a normal server;
- Configure the Linux server environment as needed;
- Configure and enable the SSH service for Ubuntu In the VM
For details about SSH configuration, refer to the introduction in the SSH service for opening an account under Ubuntu.
- Synchronize files to the Ubuntu Server
You can use winscp to synchronize files in Windows to Ubuntu. Of course, you can also use ftp or SFTP software to synchronize files.
PS: If you think it is a little troublesome to use winscp to synchronize files, you can set a shared directory for Ubuntu in windows, and then you can directly throw things to this directory, you can access related files in Ubuntu. Of course, to use this method, you must be careful not to delete files in the shared directory.
For the sake of simulation and convenience, I still recommend using winscp to synchronize files.