2019년 7월 22일 월요일

Anaconda

Anaconda

아니콘다 버전 조회
conda -V
conda --version
아니콘다 정보 조회
conda info
아나콘다 최신버전 업데이트
conda update [-n base] conda



conda remove [-n 가상환경명] 패키지명
conda install [-n 가상환경명] 패키지명
생성된 가상환경 조회
conda info --envs

conda env list

설치된 패키지 조회
conda list
설치된 패키지 검색
conda search [-n base] 패키지명
가상환경
가상환경 활성화
conda activate 가상환경명
가상환경 비활성화
conda deactivate
가상환경 추출
conda env export --name YOUR_ENV_NAME > environment.yml
pip freeze > requirements.txt
가상환경 재구축
conda env create -f ./environment.yml
pip install -r requirements.txt
pip 호환?
conda list | grep "" | cut -d " " -f 1 | xargs pip install --upgrade


2019년 3월 31일 일요일

CoreOS 설치 (기본 설치)

설치 과정
1. iso 부팅
2. 네트웍 설정
3. 설정파일 작성
4. 설치
5. 설치CD 제거
6. 재부팅

iso  부팅 후

Network Interface 정보 체크
1
ifconfig


Network 설정 열기
1
sudo vi /etc/systemd/network/static.network


Network 설정 입력 (참조)
1
2
3
4
5
6
7
8
9
[Match]
Name=enp0s3

[Network]
Address=192.168.0.205/24
Gateway=192.168.0.1
DNS=168.126.63.1
LinkLocalAddressing=no
IPv6AcceptRA=no


Network 재시작
1
sudo systemctl restart systemd-networkd

Password 생성과 cloud-config.yaml 생성
1
openssl passwd -1 > cloud-config.yaml

cloud-config.yaml 수정
1
#cloud-config
hostname: paxcore01
users: - name: paxadmin passwd: $1$qeiJttft8$vs8v2Rnlw1iNkeAFnPwQ00 groups: - sudo - docker
저장

docker-compose 설치
1
sudo coreos-install -d /dev/sda -C stable -c cloud-config.yaml


설치 시작
1
sudo coreos-install -d /dev/sda -C stable -c cloud-config.yaml


설치 시작
1
sudo coreos-install -d /dev/sda -C stable -c cloud-config.yaml


설치 시작
1
sudo coreos-install -d /dev/sda -C stable -c cloud-config.yaml

설치 시작
1
sudo coreos-install -d /dev/sda -C stable -c cloud-config.yaml

설치 시작
1
sudo coreos-install -d /dev/sda -C stable -c cloud-config.yaml