A framework for create a language development environment using Parallels Vms.
I like play with so many languages, but the environment is a bit complex.
I used using Docker, Vargrant, Vms and so on. After so many try, I think,
most I like the way is using Parallels Vms.
The traditional way to using Parallels VmS is using it with it's powerful GUI APP. (I only discuss MACX platform here.) But usually we just only need using the Vms though ssh, we didn't using the GUI APP so much. In the other hand, It's cost a bit system resouces to run the GUI APP.
After I bengin to using the powerful command prlctl
, those were all changed.
I didn't need to run the GUI APP so much. Unless I must to using the GUI to config
my Vms(because the option of the prlctl
is so comlex,
I didn't know all about them, but it's enough for daily using).
I using runX to set up all kinds of language development. If you like develope in a Vm, this runX is just for you.
Below is the steps:
prlctl
command is work well. (run prlctl list -a
to list all you vms)prlctl exec golang 'sudo -Hiu z set_up'
to setup it(this example is assume to set
up a Golang development environment, and your Vm id is 'golang'). 'z' is my username,
please change to yours, and be sure that your username have a sudo permission.tips:
./runX new golang
to clone and start a new vm from your base image../runX setup golang
to set up your golang development environment base on your vm clone above../runX ip golang
can got your golang vm's ip, then use to login,
or run ./runX enter golang
login direct.I think there're many wonderful things of runX, at least now I had found those below:
.zshrc
as $PRLCTL_HOME/zsh/.zshrc
, and also can have the one pvm alone, like $PRLCTL_HOME/zsh/$(host)/.zshrc
.oh-my-zsh
etc-profile
and etc-sudoers
templete. We set Defaults env_keep += "HOME PRLCTL_HOME GIT MCODE PATH"
to keep the PRLCTL_HOME GIT MCODE PATH
from nomal users like z
to the administration account root
..gdbinit
through the set_up
shell script, provide some generic
functions like sbps
, rbps
and so on. ${PRLCTL_HOME}/gdb/$(hostname)/$(whoami).bps
is
the default breakpoint saving file.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。