반응형

Development 80

GRUB 기초 개념 및 사용방법

GRUB이란? GNU프로젝트의 부트로더(간단히 말해서 컴퓨터를 켰을 때 가장 먼저 실행되는 프로그램)이다. GRUB은 Linux에서 bootloader로 널리 쓰이고 있다. 부트로더는 OS의 커널을 로드하고 몇몇 커널 파라메터를 커널에 넘겨주는 일을 한다. 나의 경우, 부팅을 해도 검은화면만 나오는 문제를 해결하기 위해서 GRUB을 사용하게 되었다. Ubuntu 18.04 GRUB 커널 선택 화면이 나오지 않을 경우, ESC 키를 initial bootup동안 누르면 진입할 수 있다. GRUB 메뉴에서 방향키로 각 메뉴를 선택할 수 있고 e를 누르면 command를 수정할 수 있다. 또한, c를 누르면 command-line으로 명령을 할 수 있다. ref. https://ko.wikipedia.org/..

Development/Linux 2022.10.05

[Docker] Docker를 이용하여 ROS 실행 및 GUI 보는 방법

https://jstar0525.tistory.com/202 [Docker] Deep Learning 및 ROS 연구 개발 환경 setting 내가 사용하는 딥러닝 개발 환경에 대하여 서술하고자 한다. Deep Learning과 관련하여 우리 연구실에서 다수의 연구원들이 개별 PC에서 서버로 ssh를 통하여 접속하고 GPU들을 사용을 한다. 지금까지 jstar0525.tistory.com 위에서 언급한 Docker 설정 후, ROS를 실행하고 GUI를 보는 방법은 아래와 같다. 여기에서는 아래의 두가지 방법으로 GUI를 띄우는 방법을 알아본다. ※주의 : Windows11에서는 GUI가 실행되지 않거나 문제가 있을 수 있음 (2023년 1월 21일 기준) Docker에서 GUI 띄우는 방법 Ubuntu ..

Development/Docker 2022.09.01

[Docker] Docker 사용법

https://jstar0525.tistory.com/202 [Docker] Deep Learning 및 ROS 연구 개발 환경 setting 내가 사용하는 딥러닝 개발 환경에 대하여 서술하고자 한다. Deep Learning과 관련하여 우리 연구실에서 다수의 연구원들이 개별 PC에서 서버로 ssh를 통하여 접속하고 GPU들을 사용을 한다. 지금까지 jstar0525.tistory.com 위와 같이 Docker 환경 설정 후 docker의 사용방법을 정리하면 아래와 같다. Docker 사용법 PC에서 mobaxterm을 이용하여 서버로 ssh 접속하여 아래와 같은 설정을 진행한다. 도커 권한 부여 $ sudo usermod -aG docker [username] $ sudo service docker r..

Development/Docker 2022.09.01

[VScode] VScode로 windows 환경에서 Docker 접속하기 위한 환경 설정

0. VScode 설치 https://code.visualstudio.com/download Download Visual Studio Code - Mac, Linux, Windows Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. code.visualstudio.com 1. VScode Extensions에 Docker install 2...

Development/VScode 2022.09.01

[ROS Melodic] W: GPG error: http://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>

Env. Docker osfr/ros:melodic-desktop-full 현상 # sudo apt-get update Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Get:2 http://packages.ros.org/ros/ubuntu bionic InRelease [4680 B] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Err:2 http://packages.ros.org/ros/ubuntu bionic InRelease The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654..

Development/Docker 2022.07.12

[Nvidia] GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC

Env. Docker pytorch/pytorch:1.10.0-cuda11.3-cudnn8-devel ※ 참고 실제 나의 상황에서는 docker root 권한으로 실행되어 sudo를 제외하고 명령을 실행함. 문제 상황 $ sudo apt-get update 위 명령어를 실행하였을 때, 아래와 같은 오류가 발생하였다. W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC E: The..

Development/Docker 2022.05.23

[Docker] docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. ERRO[0000] error waiting for container: context canceled 문제 상황 Docker를 실행함에 있어 아래와 같은 오류가 발생하였다. docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. ERRO[0000] error waiting for container: context canceled nvidia-smi를 실행시켜 보았지만, gpus는 정상적으로 잡혀 구글링을 통하여 해..

Development/Docker 2022.05.23

[이코테 2021] 5장 그래프 탐색 알고리즘 [실전문제] 미로 탈출

나의 풀이 n, m = map(int, input().split()) world = [] for _ in range(n): world.append(list(map(int,input()))) from collections import deque dr = [0, -1, 0, 1] dc = [1, 0, -1, 0] def bfs(r, c): q = deque() q.append([r,c]) while q: r, c = q.popleft() for i in range(4): nr = r + dr[i] nc = c + dc[i] if 0 = m: continue # 벽인 경우 무시 if graph[nx][ny] == 0: continue # 해당 노드를 처음 방문하는 경우에만 최단 거리 기록 if graph[nx..

[이코테 2021] 5장 그래프 탐색 알고리즘 [실전문제] 음료수 얼려 먹기

나의 풀이 n, m = map(int, input().split()) world = [] for _ in range(n): world.append(list(map(int, input()))) def dfs(r, c): if r =n or c = m: return False else: if world[r][c] == 0: world[r][c] = 1 dfs(r-1, c) dfs(r+1, c) dfs(r, c-1) dfs(r, c+1) return True else: return False cnt = 0 for r in range(n): for c in range(m): if dfs(r, c): cnt += 1 print(cnt) 답안 예시 # N, M을 공백을 기준으로 ..

반응형