M
M
Mishcake2020-02-13 13:34:31
ubuntu
Mishcake, 2020-02-13 13:34:31

How to work with Ubuntu Server in a virtual machine?

Hello. It's just a cry of despair for help :)) I just can't figure out how Ubuntu server should help me in web development in a virtual machine.

I'm still a noob and a layman, I've worked with Windows all my life, but everyone says that a full-fledged development requires a unix system, and many manuals are written to perform them on unix systems.

I'm currently doing some design work and working as a coder (html+css+jquery+vanilla js, without assemblers and other things) in VSCode, while I'm learning Python, because I want to move to the backend. I don’t know if it will be possible to leave 100% from the front, but I want to try.

Accordingly, for Windows enthusiasts like me, many advise putting Linux in a virtual machine. Yes, not desktop Linux, but server.

The choice fell on Ubuntu Server, although some advise to throw Debian netinstall there as well.

So...

I just can't understand how I can fully work with the server system in a virtual machine and in Windows.

For example, for python practice, I want to deploy a venv virtual environment, or for a test task, I need to deploy a project locally. Install a node, nvm, golang, modd, docker - I roughly understand how to do it through the console (fortunately I tried to turn it on desktop ubunt - it worked).

I will do it in a virtual machine, but how can I edit the scripts later?

Return to Windows, open files that are stored on the virtual machine through VScode (is this even possible?), edit, basic test (via the VScode terminal), and then try to run the code that I need in the virtual machine?

PS I don’t want to move to desktop Linux - it keeps an annual subscription to OneDrive (it works crookedly in Linux, because it synchronizes all files at once, and I have almost 1TB there), Photoshop (I actively work in it myself, Figma is not an option, because photo retouching), desktop Evernote (although I can put up with a crooked web version) and a number of programs (Premier, AfterEffects, Audition, Ableton Live).

Therefore, I consider only a virtual machine, because they still sin on WSL and do not recommend switching.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Vladimir Korotenko, 2020-02-13
@Mishcake

Bring up ssh. Set up a virtual machine so that it is visible on your network. For example, I have
192.168.88.252
Connect the studio https://code.visualstudio.com/docs/remote/ssh
Or connect via ssh or via the plugin for total commander ssh fs

V
Vadim Priluzkiy, 2020-02-13
@Oxyd

And you still try WSL. The one that is new, v2. It also has integration with VSCode and many children's sores are gone.

V
Vladimir Kuts, 2020-02-13
@fox_12

Python is multiplatform.
If you approach wisely, then you can put the environment in windows and calmly develop in it.
And in Linux, do auto-deploy and automatic testing of the desired branch of your project's repository.

V
Vladislav Bochkov, 2020-02-14
@hd48915

what virtual machine? Forward ports and connect VsCode via remote-ssh. putty for direct ssh access. on the server you need to raise ssh-server.

V
Vasily Sterpu, 2020-02-15
@Wassa

Good afternoon!
Since in Windows 10 it became possible to run, not a full-fledged, Linux kernel, but still Linux. Then, in my opinion, there is no need to bother with running a virtual machine on Linux. You just need to enable the WSL2 feature (takes a few minutes to find the command on google and paste it into PowerShell, and then install the desired kernel from the Microsoft Store). This option is faster and does not consume iron resources.
Then you can work on Linux from the same PowerShell using the "wsl" command.
Vs Code also has an option to work with WSL2 (read the documentation on this).
As a result, you will have a Linux kernel that runs like a Windows application, enough so that you can keep working and access the project files without headaches.

B
bro-dev, 2020-02-15
@xPomaHx

In a virtual machine, ssh and samba, in Windows you set up a network drive, and you have all the files in the usual explorer, and instead of the console through ssh, for example, secur srt. I have done this at home and IMHO it is very convenient, more convenient than just an ubunt desktop, so I have it at work, so I compare it every day.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question