#1. jupyter note 설치 # 패키지 구성을 위해 pip 최신버전으로 설치 apt-get update apt install python3-pip # jupyter 설치 pip3 install jupyter # jupyter notebook의 설정파일 생성, 패스워드 설정 jupyter notebook --generate-config jupyter notebook password # 외부에서 접속 가능하도록 설정 # 변경 내용은 # vi .jupyter/jupyter_notebook_config.py # c.ServerApp,ip=;localhost 를 c.ServerApp.ip='*'로 변경하기 , 아래 sed 명령어로 한방에 작업된다. cd .jupyter/ sed -i "s/# *c.ServerApp.ip *= *'localhost'/c.ServerApp.ip = '*'/g" jupyter_notebook_config.py # jupyter notebook 기동 jupyter notebook --allow-root # 웹브라우저로 접속 서버 공인IP:8888 # 2. 패키지 추가 구성 # AI 개발을 위한 다양한 라이브러리 설치 cd pip3 install tensorflow pip3 install matplot pip3 install pandas pip3 install scikit-learn pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu --pre : 정식 버전이 아닌 프리릴리즈(나이틀리 빌드) 설치 torch, torchvision : PyTorch + 이미지 처리 라이브러리 --index-url : PyTorch 공식 wheel 저장소 사용 cpu : GPU(CUDA) 없이 CPU 버전 설치 # tensor board 설치 tensorboard --logdir=runs/ --host=0.0.0.0 웹브라우저에서 공인ip:6006 포트 접속