Use virtualbox to simulate remote Linux environment for code debugging

Source: Internet
Author: User

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
  1. 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;
  2. Configure the Linux server environment as needed;
  3. 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.

  4. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.