Error 해결 및 유용한 방법들 (15) 썸네일형 리스트형 리눅스 mount ## 우분트에서 disk 마운트 하기 현재 드라이브 정보 확인 sudo lshw -C disk sudo fdisk -l fdisk -l 명령어를 입력하면, 현재 가지고 있는 디스크 목록이 뜨는데 마운트 시킬 디스크의 찾아서 마운트 하면된다. ## 마운트 하기 mkdir /mnt/hdd mount /dev/sda /mnt/hdd chmod 777 /mnt/hdd ## 언마운트 하기 umount /mnt/hdd ## 소유자, 소유그룹이 전부 root일 경우 사용하고 있는 리눅스가 재부팅되거나 어떤 이유에서 모든 소유권과 그룹이 root가 되는 경우가 있는데 이럴경우, 파일 및 디렉토리 생성이 안되고 수정도 안되게 됩니다. 이를 해결하는 방법 3가지를 소개하려고 합니다. 1.chmod를 사용해서 권한 부여 .. MMdetection에서 Mask2Former Error 해결 mmdetection에서 Mask2Former를 사용시 train에는 문제가 없지만, validation시 즉 평가시 out of memory가 발생 https://github.com/open-mmlab/mmdetection/issues/9424 cuda out of memory when testing Mask2Former model · Issue #9424 · open-mmlab/mmdetection Prerequisite I have searched Issues and Discussions but cannot get the expected help. I have read the FAQ documentation but cannot get the expected help. The bug has not b.. docker container에서 한글 이름 폴더 깨짐 해결방법 1. locales 설치 apt-get install locales 2. 환경값 setting export LANGUAGE=ko_KR.UTF-8 export LANG=ko_KR.UTF-8 3. locales 설정 locale-gen ko_KR ko_KR.UTF-8 update-locale LANG=ko_KR.UTF-8 4. dpkg-reconfigure locales 실행 dpkg-reconfigure locales 엔터를 사용하면서 ko_KR.UTF-8 UTF-8을 찾는다. ko_KR.UTF-8 UTF-8 번호는 사용자 마다 다를 수 있습니다 !! 찾고 엔터를 계속 입력하면 생성할 로케일 목록이 나타나므로 ko_KR.UTF-8 UTF-8의 번호를 입력해주면 된다. 이후 3을 입력후 엔터 !! 한글이 제.. SSH 접속 오류 해결 SSH 접속 에러 해결 방법 /etc/init.d/ssh restart Could not load host key: /etc/ssh/ssh_host_ecdsa_key라는 에러가 발생시에 해결 방법입니다. 1.ecdsa키를 생성 ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N “” 2. sshd의 host 키가 load 되지 않는 현상 해결 ls -al /etc/ssh/ssh*key rm -r /etc/ssh/ssh*key dpkg-reconfigure openssh-server /etc/init.d/ssh restart 3. 실행 권한 없음 chmod 400 {key_name} or chmod 755 {key_name}로 해결 가능 chmod 755 /r.. 리눅스 심볼릭 링크 sudo apt-get update -y sudo apt-get install -y symlinks ln -s [원본 파일 및 폴더] [링크 위치] 링크 해제: 삭제 rm 명령어로 링크 폴더를 지우면 된다 !! docker에서 특정 GPU 메모리만 비워야 할 때, 사용 ps aux | grep python ps -ef | grep python → 깰끔하게 보임 ps -u | grep python → 이것도 깰끔하게 보임 docker에서 현재 실행중인 python 목록들을 보여주고, 해당 pid를 이용해서 메모리를 비울 수 있음. sudo kill -9 4894 public key error W: GPG 오류: http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.rVavhs for passing config to apt-key E: The repository 'http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository cr.. 이전 1 2 다음