Le-voyeur / autres

second-hand
0 stars 0 forks source link

Configuration for my mac #4

Open Le-voyeur opened 9 years ago

Le-voyeur commented 9 years ago

1.sublime click https://www.sublimetext.com/ to download version 2.0.2

cd ~/bin ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl subl cd ~/Library/Application\ Support/Sublime\ Text\ 2/Package rm -r User git clone https://github.com/Le-voyeur/sublime-config mv sublime-config User restart sublime

2.homebrew & tmux &wget

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #install homebrew https://brew.sh brew tmux #install tmux //tmux skills: C-a + ? display bind-key rew install wget 3.oh-my-zsh shift to zsh chsh -s /bin/zsh install oh-my-zsh git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

////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. 装好后,

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

  1. 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,会弹出个终端窗口,和启动程序,关闭终端,按照上面的步骤继续往下就行,希望能帮到大家。