Setup a Linux distro for JavaScript development by running this script! If you want to know what gets run, you can quickly look at the dist
script that everything compiles to.
TL;DR
Paste & execute the following on your Ubuntu terminal
wget -O - https://raw.githubusercontent.com/gnclmorais/setup-distro-for-js/main/dist/all.sh | bash
Sharing folders
Based on these helpful instructions by @darrenpmeyer, here is the gist of it:
- With your VM on, make sure the folder
/mnt/hgfs
exists by runningsudo mkdir /mnt/hgfs
- Edit
/etc/fstab
withsudo vim /etc/fstab
, adding the following line to the bottom of the file and saving it:.host:/ /mnt/hgfs fuse.vmhgfs-fuse auto,allow_other 0 0
- Turn the VM off now
- Create a folder on your macOS that you want to use as a read-only place for the VM
- On the VM window, still off, go to Virtual Machine, pick Sharing, then Sharing Settings
- Check Enable Shared Folders, click the plus icon and pick the folder you created on step 4
- Turn your VM on now, and you should be able to see your folder when you do
ls /mnt/hgfs
on a terminal!