Setting Environment for New PC

Song Cho
3 min readMar 20, 2019

--

Song’s Version

Git Setup

Step 1: Generate SSH key, and then add it to you Github

reference : https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

Step 2: Set Your Identity

$ git config --global user.name "Song Cho"
$ git config --global user.email deeplearner507@gmail.com

If you want to override this with a different name or email address for specific projects, you can run the command without the --global option when you’re in that project.

For MAC OS

#Custumizing oh-my-zsh

https://medium.freecodecamp.org/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156

Step 1: Install Homebrew through Xcode

Google! it

Step 2: Install ZSH

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

Step1. install Xcode on ApplicationStep2.$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Step3.
$ brew install zsh

Install Oh My Zsh by running the command

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Check the installed version

zsh --version

You can upgrade it to get the latest features it offers.

upgrade_oh_my_zsh

#FRONT-END

##React (Javascript)

##React Native

#BACK-END

## Django (python)

1. install Python3

https://www.python.org/downloads/

2. install anaconda3, python, pip and VSCode

https://www.anaconda.com/distribution/#download-section

3.1 setup path for bash

Step1.export PATH=/Users/chos/anaconda3/bin:$PATHStep2. source ./bash_profile

3.2 Setup path for zsh

4. How to check Conda Installation

$which conda
$conda -V
$conda list

5. Creating the Virtual Environment

Step1. create VE called 'new_env' 
$ conda create --name chat_app python=3.5
Step2. 가상환경 목록 조회하기
$ conda env list
Step3. Activate & deactivate & env list$ conda activate chat_app
$ conda deactivate
$ conda env list

6. Django Installation

Step1. 'chat_app' 이라는 가상환경 만들기
$ pip install django
Step2. 가상환경 목록 조회하기
$ django-admin startproject chat_app
Step3. 실행하기 & 종료하기$ conda activate chat_app
$ conda deactivate

## Node.JS (Javascript)

  1. node, npm 설치하기

For Ubuntu

https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-18-04

Important Note! Make sure you are on bash not zsh! you have to switch properly.

Step 1.
$ bash Anaconda-latest-Linux-x86_64.sh
Step 2.
$ sudo nano./bashrc
Step 3.
go down to the last line, and add following script
export PATH=~/anaconda3/bin:$PATHStep 4.
activate the changes..
$ source ./bashrc

#DATABASE

pytest:

pytest -s

python -m pytest

sys

import sys : So first thing I did was I just imported as well as the system and that’s going to allow us to use a get size of function which will let us know the actual size in bytes that the computer’s holding in memory.

(memory usage jump!)

Vs Code

Extenstion

  1. Code Runner
  2. Babel ES6/7
  3. ES7 React/Redux/GraphQL/React-Native snippets
  4. auto close tag
  5. beautify
  6. color highlight
  7. docker
  8. npm
  9. npm intellisense

Database

MySQL through CLI

https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Song Cho
Song Cho

No responses yet

Write a response