전체 글

전체 글

    [Intellij] git bash로 실행하기

    [Intellij] git bash로 실행하기

    File - Settings - Tools - terminal 에서 Shell path 에 cmd.exe 로 되어 있는 것을 C:\Program Files\Git\bin\sh.exe -login -i 다음과 같은 경로로 변경해준다. 그러면 터미널 창에서 Gitbash로 변경된 것을 확인할 수 있다.

    WARNING! Using --password via the CLI is insecure. Use --password-stdin

    gitlab-ci.yml 비밀번호 오류가 나면서 안됨 --password-stdin로 변경해서 사용하면 다음과 같은 에러가 뜨면서 안됨 Error: Cannot perform an interactive login from a non TTY device 해결 docker login 부분에서 $CI_REGISTRY 의 경로가 지정되어 있지 않아 생기는 오류였다.

    .git 삭제 명령어 / git 연결끊기

    git이랑 연결된 프로젝트의 연결을 취소하고 싶을 때 .git 파일을 삭제해주어야 한다. 프로젝트가 삭제되는것이 아니고 깃과 연결되어있는 .git을 삭제하는 것이다. 삭제하는 명령어는 find ./ -name ".git" | xargs rm -Rf

    fatal : not a git repository (or any of the parent directories): .git

    fatal : not a git repository (or any of the parent directories): .git

    초기화 작업이 진행되지 않아 발생하는 오류로 git init 명령어로 초기화 및 기본 설정 .git 디렉토리를 생성해야 한다. # git init # ls -la 그럼 다음과 같이 .git 이 생성된 것을 확인할 수 있다.

    [python] pip install albumentations error

    pip install albumentations 실행시 다음과 같은 에러가 나온다면 ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 액세스가 거부되었습니다: 'c:\\users\\user\\anaconda3\\Lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd' Consider using the `--user` option or check the permissions. 파이선 3.6 버전이나 그 상위버전에서만 사용이 가능하다. pip install --user albumentations To install albumentations using conda we need first to i..

    [python] pytorch 라이브러리 설치하기

    파이썬에서 pytorch 를 사용하고자 하는데 필요한 라이브러리 설치 명령어와 import 를 정리해 두었다. pip install opencv-python conda install pytorch torchvision -c pytorch conda install -c conda-forge imgaug conda install albumentations -c conda-forge from PIL import Image import os from pathlib import Path import shutil import cv2 import numpy as np import time from tqdm import tqdm import torch import torchvision from torch.utils.d..

    [python] No module named 'torch'

    파이썬에서 No module named 'torch' 가 뜨면서 에러가 발생한다. 윈도우 환경에서는 Anaconda 가 설치 되어 있는경우 Anaconda Prompt 실행 후 $ conda install pytorch torchvision -c pytorch Anaconda 가 설치 되어 있지 않는경우 cmd 창에서 $ conda install pytorch torchvision -c pytorch 리눅스환경에서는 $ pip install torch torchvision 자세한 개발환경에 따른 파이토치 설치는 홈페이지에서 확인 가능하다. pytorch.org/get-started/locally/#mac-python

    [python] No module named 'cv2'

    import cv2를 사용하려하는데 No module named 'cv2' 가 뜨면서 에러가 발생한다. Anaconda 가 설치 되어 있는경우 Anaconda Prompt 실행 후 pip install opencv-python 설치 Anaconda 가 설치 되어 있지 않는경우 cmd 창에서 pip install opencv-python 설치

    리눅스에 톰캣 설치

    //설치 $ sudo apt-get install tomcat8 //톰캣시작 $ service tomcat8 start //톰캣버전확인 $ sudo /usr/share/tomcat8/bin/version.sh //톰캣시작 /usr/local/tomcat/bin ./startup.sh

    가상머신 외부에서 접속

    가상머신 외부에서 접속

    윈도우 cmd창에서 ipconfig 로 VirtualBox Host-Only Network 부분의 IPv4주소를 가져온다 가상머신 포트포워딩 설정해서 윈도우에서 확인한 ip를 넣어주면서 포트번호를 설정한다 가상머신에서 포트포워딩한 후 MobaXterm 에 ssh root@192.168.56.1 -p2220 -p 뒤에는 내가 포트포워딩으로 설정한 포트를 입력해주면 된다. >> 연결이 안될 경우 가상머신에서 리눅스 ssh 데몬이 작동하고 있는지 확인한다. $ netstat -ntl | grep 22