You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Container technology has been popular, but VM is still a good choice for myself considering its full flexibility including the hack-ability of kernel.
Full disclosure: I primarily work on Mac, and I like using vscode as my primary tool for developing code. Now coming to my problem, I have to get a Linux environment, because many of the projects that I worked on relies on Linux functionality.
Launching a VM
There might be many choices:
Launching VM in cloud. This is awesome, but it limits your capability to work offline.
Using VirtualBox. Sadly, due to its license issue, I couldn't run it for my work. It's considered as personal use only as far as I can tell.
multipass. This is good considering its simplicity of configuration and license seems to be good as well.
I finally choose multipass. Here is how I create one VM for myself:
$ multipass launch -c=2 -m=8G -d=50G --name=dev
The flags are just so intuitive that I don't even to remember it.
The next step is about configuring the access. Well, obviously, we can use multipass shell dev directly, but that's just not the standard way of access, I mean, internally it is SSH anyway. I just want to make it more explicit.
$ sshkey-gen -t rsa
Then append the following configuration
To make the user experience more straightforward for using vscode, we can add the following script into PATH which name code.
Container technology has been popular, but VM is still a good choice for myself considering its full flexibility including the hack-ability of kernel.
Full disclosure: I primarily work on Mac, and I like using vscode as my primary tool for developing code. Now coming to my problem, I have to get a Linux environment, because many of the projects that I worked on relies on Linux functionality.
Launching a VM
There might be many choices:
I finally choose multipass. Here is how I create one VM for myself:
$ multipass launch -c=2 -m=8G -d=50G --name=dev
The flags are just so intuitive that I don't even to remember it.
The next step is about configuring the access. Well, obviously, we can use
multipass shell dev
directly, but that's just not the standard way of access, I mean, internally it is SSH anyway. I just want to make it more explicit.$ sshkey-gen -t rsa
Then append the following configuration
To make the user experience more straightforward for using vscode, we can add the following script into
PATH
which namecode
.The text was updated successfully, but these errors were encountered: