1. Install sshpass $ brew install http://git.io/sshpass.rb 2. Using iTerm2, configure profiles and use sshpass so there's no need to enter passwords for ssh, follow this post for configuring iTerm2. What worked for me is in Command, select "Login shell", then send text at start: sshpass -p 'password' ssh -o StrictHostKeyChecking=no user@server
Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts
7.21.2017
Mac Cheat Sheet
7.20.2017
Install Postgres on Mac
Followed this post 1. Go to http://postgresapp.com/ then download and install 2. Add Postgres to PATH $ vi ~/.bash_profile export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin $ source ~/.bash_profile 3. Start Postgres by double clicking the app, then on the top icon, start "Initialize" 4. Try connecting using default postgres role $ psql -U postgres psql (9.6.3) Type "help" for help. postgres=#
Install Python 3.6 on MacOS
Generally followed this post I. Install brew 1. Install Xcode from the App Store 2. Install Xcode’s separate Command Line Tools app $ xcode-select --install 3. Install and setup homebrew $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 4. Make sure brew is in PATH $ vi ~/.bash_profile export PATH=/usr/local/bin:$PATH 5. Source it $ source ~/.bash_profile 6. Try brew $ brew doctor Your system is ready to brew. II. Install Python $ brew search python $ brew install python3 $ python3 --version Python 3.6.2 To install a python package $ pip3 install package_name To upgrade python $ brew update $ brew upgrade python3 III. Creating Virtual environments $ mkdir sample_project $ cd sample_project $ python3.6 -m venv my_env $ source my_env/bin/activate
Subscribe to:
Posts (Atom)