Introduction: Most of the time are writing your own C ++ program, we recorded about the process of creating their own development environment, easy access in the future, so that something can not remember when we still have to Baidu to find. It is the code to create a development environment on a Linux server (build) compiler - Links - run, edit code in a windows environment.
Tools used:
VMware-workstation: Virtual Machine
ubuntu-16.04.5-server: Linux Server Edition
MobaXterm: SSH connectivity tools
sublime: a text editor
Tools need to be installed on Linux: openssh-server samba gcc / g ++ cmake make
The overall process:
After the windows system is installed VMware-workstation virtual machine, install the Linux operating system in the virtual machine, install openssh-server tools in the Linux operating system, install openssh-server, the widows operating system can connect to a Linux server via MobaXterm tool , and then later install samba tool, you can put Linux directory shared out for editing with sublime in the windows above, later edited on the server to complete the work by the compiler and linker gcc / g ++ / cmake / make.
Tool storage address:
Link: https: //pan.baidu.com/s/1cKSu66SrhuEIhQrRQ73Q4Q
extraction code: 8bv6
samba file sharing method:
step1 安装samba: sudo apt-get install samba
step2 configuration: vim /etc/samba/smb.conf
Add the last line
# Directory name
[code]
path=/code
# Is writable
writeable=yes
# Can View
browseable=yes
# Visiting user is accessible
guest ok=yes
step3: Restart samba
pkill smbd
smbd
ps -ef | grep smbd
step4: the root directory record code
its -
mkdir code
chmod -R 777 code