vagrant -v #installed if something display
mkdir rails10-va #make dir
cd rails10-va #gointo dir
vagrant box add ubuntu/trusty64 #add ubuntu14 box
vagrant init ubuntu/trusty64 #
vagrant up #start the virtual machine
vagrant ssh #login in ubuntu with vagrant(default)
^ d logout and gointo the dir,then edit the Vagrantfile,input the codes following:
config.vm.provider "virtualbox" do |v|
v.memory = 2048
end
vagrant reload #reload your setting
//////共享文件夹与设置ip//////
in file "Vagrantfile"
加入 config.vm.network :private_network, ip: "192.168.10.10"
vagrant reload
sudo vim /etc/hosts
192.168.10.10 meetup.dev //////meetup.dev 是你的域名,可任意修改
登陆 虚拟机
cd /vagrant
rails new meetup -d mysql
Secure CRT
按照正常操作会遇到以下错误,提示如下
VictorMacBook-Pro:~ Jack$ sudo perl /Users/Jack/Downloads/securecrt_mac_crack.pl /Volumes/SecureCRT/SecureCRT.app/Contents/MacOS/SecureCRT
defined(@array) is deprecated at /Users/Victor/Downloads/securecrt_mac_crack.pl line 30.
(Maybe you should just omit the defined()?)
Insufficient privileges, please switch the root account. at /Users/Victor/Downloads/securecrt_mac_crack.pl line 70.
折腾到这时候我终于找到了问题原因,因为第一次用mac,不太会操作,应该把程序图标拖到“应用程序”里,再执行上面给的命令,如果启动程序启动提示损坏的话,别删除,右键点程序》显示包内容》进入Contents/MacOS/SecureCRT,会弹出个终端窗口,和启动程序,关闭终端,按照上面的步骤继续往下就行,希望能帮到大家。
1.sublime click https://www.sublimetext.com/ to download version 2.0.2
2.homebrew & tmux &wget
////To get on web 4.vagrant&virtualbox Go to https://www.virtualbox.org/wiki/Downloads download packages for mac et extended pack Go to https://www.vagrantup.com/downloads.html to download dmg. 装好后,
按照正常操作会遇到以下错误,提示如下
VictorMacBook-Pro:~ Jack$ sudo perl /Users/Jack/Downloads/securecrt_mac_crack.pl /Volumes/SecureCRT/SecureCRT.app/Contents/MacOS/SecureCRT defined(@array) is deprecated at /Users/Victor/Downloads/securecrt_mac_crack.pl line 30. (Maybe you should just omit the defined()?) Insufficient privileges, please switch the root account. at /Users/Victor/Downloads/securecrt_mac_crack.pl line 70. 折腾到这时候我终于找到了问题原因,因为第一次用mac,不太会操作,应该把程序图标拖到“应用程序”里,再执行上面给的命令,如果启动程序启动提示损坏的话,别删除,右键点程序》显示包内容》进入Contents/MacOS/SecureCRT,会弹出个终端窗口,和启动程序,关闭终端,按照上面的步骤继续往下就行,希望能帮到大家。