본문 바로가기

Ubuntu

(7)
Docker 명령어 * Ubuntu용 docker 설치 https://docs.docker.com/engine/install/ubuntu/ Install Docker Engine on Ubuntu docs.docker.com * 이미지들 확인 docker images * 이미지 삭제 docker image rm * 모든 이미지 삭제 docker rmi -f * 이미지 임포트 cat | docker import - * docker 컨테이너 생성 docker run -it --name /bin/bash ** 컨테이너와 호스트 간의 공유 폴더 필요시 -v 옵션 사용 docker run -v : -it --name /bin/bash * 컨테이너 실행 sudo docker start * 컨테이너 리스트 보기 docker contai..
노트북 덮개 전원 설정 - 설정할 수 있는 파일 열기 sudo gedit /etc/systemd/logind.conf - logind.conf 파일에서 HandleLidSwitch 항목을 수정 #HandleLidSwitch=suspend (기본값) - 덮개를 덮으면 전원을 끕니다. HandleLidSwitch=ignore (주석 제거, ignore로 수정) - 덮개를 덮어도 전원이 켜져 있습니다. 저장 후 터미널에 systemctl restart systemd-logind 명령어 실행 이후 반응이 없을 수 있는데 전원 껐다 키면 됩니다.
protobuf 빌드 및 설치 1. protobuf 프로젝트 다운로드(.tar.gz파일 다운로드, tar -xf로 압축해제) Releases · protocolbuffers/protobuf · GitHub Releases · protocolbuffers/protobuf Protocol Buffers - Google's data interchange format - protocolbuffers/protobuf github.com protobuf 2.6.0부터 python3 지원됩니다. python2.x용으로 쓰기 위해 protobuf 2.5.0을 사용하여 빌드에 성공했습니다. 2. 압축해제한 protobuf 폴더로 이동 ./configure make make install 3. 설치된 protobuf 삭제 make uninstall 4..
python 버전 변경 파이썬이 여러 버전 설치되어 있는 경우가 있습니다. 타겟 프로젝트에 따라서 버전을 변경해야할 경우 필요한 명령어입니다. update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1 update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 위 명령어에서 끝 부분의 파이썬 버전과 인덱스만 바꿔서 추가하면 됩니다. sudo update-alternatives --config python 그 다음 위의 명령어를 입력하면 숫자로 파이썬 버전을 선택할 수 있습니다.
Nvidia 그래픽 카드 드라이버 설치 sudo ubuntu-drivers autoinstall
파일 이름 검색 find [경로] [옵션] [파일이름] find / -name '*.jpg'
Python 패키지 경로 추가(콘솔) export PYTHONPATH=$PYTHONPATH:[경로]