V
V
Viktor2015-02-06 09:37:42
linux
Viktor, 2015-02-06 09:37:42

VMware: ubuntu + web server (under windows) - how to forward a shared folder of a website to work with files?

There is VMware, ubuntu desktop + LEMP is installed there. The virtual development environment works, my wordpress opens at example.com in the browser. (since I registered it in hosts)

But the question is, how can I transfer a folder with site files from Linux to windows so that I can easily work with them?
As far as I understand, you can choose a random folder for sharing only from the main operating system (Windows), while in Linux all shared folders are in the /mht/hgfs directory.
How can I do the opposite? For example, in a virtual machine, the folder with the site is located at /var/www/example.com/htdocs/ , and I need to share this folder into the main operating system. Can this be done in VMware, or maybe in VirtualBox?
If not, then I had an idea to auto-sync the /mht/hgfs/htdocs/ and /var/www/example.com/htdocs/ directories in the Linux virtual machine.
So is there a correct solution to this issue?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
H
Hatifnatt, 2015-02-06
@victafonenko

Set up an SSH server - help.ubuntu.ru/wiki/ssh and slowly practice working in the console using PuTTY
Use WinSCP to access files. You can configure FTP as described above, but IMHO FTP is a little more difficult to configure.

A
Anton AK, 2015-02-06
@AntonAK83

Maybe it's better to put an FTP server on Ubuntu and use an ftp client on Windows?

S
solalex, 2015-02-06
@solalex

You can use Dropbox, but then you need constant Internet access for synchronization.
If locally - then put samba on the virtual machine, share the www folder, and in Windows connect it with a network drive.

V
Vladimir Korotenko, 2019-11-14
@firedragon

Many IDEs have the ability to work transparently via ftp\sftp\ssh
For example, VS Code, PhpStorm, Sublime Text. Set up what is comfortable for you.
However, even in TotalCommander, the modified file is automatically uploaded, but it is still better to use the IDE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question