[LINUX] Addition of local development environment on MacOS


Notes on preparing multiple virtual environments with Vagrant

・ VirtualBox installed ・ Cyberduck installed

Organize directories

In the Home> MyVagrant folder, ・ MyCentOS ・ MyprojectA Create a folder called, and build a server for each. This time, MyCentOS is supposed to be the original one, and a folder called MyprojectA is created. After creating the MyprojectA folder, execute the following command there.

Command input

Create a Vagrantfile for virtual machine settings

vagrant init bento/centos-6.8

Edit the Vagrantfile to set the virtual machine IP address to

sed -i '' -e 's/# config.vm.network "private_network", ip: ""/config.vm.network "private_network", ip: ""/' Vagrantfile

vagrant reload

(If you get an error, it may be the IP address setting. Rewrite the IP on the following line in Vagrantfile in the .vagrant folder.)

config.vm.network "private_network", ip: ""

(If you get an error due to multiple environments, install the plugin at this timing)

vagrant plugin install vagrant-vbguest

Start a virtual machine (VirtualBox runs behind the scenes)

vagrant up

Check the status of the virtual machine

vagrant status

Log in to the virtual machine and check the IP address

vagrant ssh
ip a

Update OS to the latest state (it takes time)

sudo yum -y update

Install git to get the script

sudo yum -y install git

Download the script for application settings using git

git clone https://github.com/dotinstallres/centos6.git

A centos6 folder will be created, so move to that

cd centos6

Run the script (it takes time)


Reflect various settings

exec $SHELL -l

Cyberduck connection

Start Cyberduck, click New Connection, set the following and connect. -Protocol: SFTP -Server: ・ Username: vagrant ・ Password: vagrant After starting, register in bookmark (MyprojectA)

State of bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc

# User specific environment and startup programs


export PATH
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Recommended Posts

Addition of local development environment on MacOS
Python development environment construction on macOS
Build a local development environment for Laravel6.X on Mac
Notes on creating a python development environment on macOS Catalina
Django environment development on Windows 10
Build a Python development environment using pyenv on MacOS
Construction of Python local development environment Part 2 (pyenv-virtualenv, pip usage)
Memo of python + numpy/scipy/pandas/matplotlib/jupyterlab environment construction on M1 macOS (as of 2020/12/24)
Prepare Python development environment on Ubuntu
Environment construction of python3.8 on mac
Install Python development environment on Windows 10
Environment construction of "Tello_Video" on Ubuntu
The image is displayed in the local development environment, but the image is not displayed on the remote server of VPS
Example of building python development environment on windows (wsl2, vscode, pipenv)
Construction of Python local development environment Part 1 (pyenv, pyenv-virtualenv, pip installation)
Run different versions of Python (wsgi) apps on one development environment
Python development environment for macOS using venv 2016
Build a python environment on MacOS (Catallina)
Python3 + venv + VSCode + macOS development environment construction
Installation of psutil fails on MacOS Cataline
Construction of development environment for Choreonoid class
Instantiation of the BOX development environment created earlier
Build a Python development environment on your Mac
python development environment -use of pyenv and virtualenv-
Build a Kubernetes environment for development on Ubuntu
Set up a Python development environment on Marvericks
Run OpenVino on macOS and pyenv and pipenv environment
Set up an Objective-C 2.0 development environment on Linux
Create a Python virtual development environment on Windows
Build a Python development environment on Raspberry Pi
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a Django development environment using pyenv-virtualenv on Mac
Create a comfortable Python 3 (Anaconda) development environment on windows
Build a GVim-based Python development environment on Windows 10 (1) Installation
Build a Python development environment on Mac OS X
Separation summary of development environment by chroot of various Linux
QGIS3 Python plugin development environment construction with VSCode (macOS)
Install Python environment on local PC (pyenv, venv on Mac)
Ssh to virtual environment with remote development of vscode
Cross development environment (developing programs for windows on linux)
Create a Python development environment on OS X Lion
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
Prepare Django development environment using homebrew on MacOSX Mavericks (10.9)
Unification of Python environment
Python development environment construction
About Python development environment
python2.7 development environment construction
Development environment in Python
[Memo] Django development environment
Switch the setting value of setting.py according to the development environment
Build a python machine learning study environment on macOS sierra
Display "Hello World" created in the local environment on the web
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
Unify the environment of the Python development team starting with Poetry
Pros and cons of converting Django's development environment to Docker
Building a Jupyter Lab development environment on WSL2 using Anaconda3
Build an Ubuntu python development environment on Google Cloud Platform
Django + MongoDB development environment maintenance (in the middle of writing)
Create a VS Code + Docker development environment on a Linux VM
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
[Python] PyCharm environment settings (installation, interpreter settings, addition of packages) Mac environment