Useful Tools
tmux:
also:
mosh,screen,nohup, and otherdameon tools,supervisor, but i really liketmux.
install tmux, and use this guys configure https://github.com/gpakosz/.tmux
useage: (Ctrl + A is the key touch, defalut is Crtl + B )
$ Crtl + A + $ # rename your tmux session
$ Crtl + A + D # detache your session, make it run backgroud
$ tmux a -t target # attache your session
$ Crtl + A + - # split row
$ Crtl + A + _ # split colume
$ Crtl + A + Z # max the window
vagrant:
vagrant init # use this cmd to genaretor a Vagrant fvagrant plugin install vagrant-aws # you can install the special plugin use the vagrant like this
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "xxxxxxxxx"
aws.secret_access_key = "xxxxxxxxxyyyyyyyyyy"
aws.keypair_name = "mour" #不能写成mour.pem
aws.ami = "ami-1bfdb67c" #不能直接写id
aws.region="ap-northeast-1" #配置region要加aws, aws.region
#aws.instance_type = "t2.nano" #配置默认实例大小
aws.security_groups = ['for_pyspider_test'] #安全组
aws.tags = { :Name => "pyspider_scheduler" }
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "./mour.pem"
end
end
vagrant up # start instance use some provider, like vagrant up --provider=awsvagrant ssh # if you didn't use the special name, it will connect to the default machinevagrant halt # stop itvagrant reload # restart itvagrant destroy # destroy the machine
also there many differents tools use for control the computer , if you have interesting, you can have more power in
ansibleorsaltstackif you want program with it , you can find
fabriclikely or something else
vim:
irc: