본문 바로가기
반응형

MM(MyMemo)13

Windows(윈도우즈)에서 Cmake 설치하는 방법 📌들어가며 오늘은 Windows에서 Cmake를 설치하는 방법에 대해서 포스팅 하고자 합니다. 설치 방법 1. 아래 사이트에 접속한다. https://cmake.org/download/ Download CMake You can either download binaries or source code archives for the latest stable or previous release or access the current development (aka nightly) distribution through Git. This software may not be exported in violation of any U.S. export laws or regulatio cmake.org 2. Windows에서.. 2024. 1. 31.
초보자를 위한 친절한 Git(깃) 설치 방법 1. Git Downloading Package에 들어간다. https://git-scm.com/download/win Git - Downloading Package Download for Windows Click here to download the latest (2.43.0) 32-bit version of Git for Windows. This is the most recent maintained build. It was released 2 months ago, on 2023-11-20. Other Git for Windows downloads Standalone Installer 32-bit Git for Wi git-scm.com 2. 64-bit Git for Windows Setup을 누르고.. 2024. 1. 31.
VScode를 사용하여 VirtualBox에 설치된 Ubuntu(우분투) 가상 PC SSH로 접속하기 📌들어가며 이번 포스팅에서는 VScode를 사용하여 VirtualBox에 설치된 Ubuntu(우분투) 가상 PC SSH로 접속해 보겠습니다. VirtualBox에서의 설정 현재 제 VirtualBox 관리자 화면입니다. 저는 Ubuntu_22_04_2_Ros2_Humble이라는 PC에서 실습을 진행하겠습니다. 아래 그림과 같이 Network Manager를 누릅니다. 누르게 되면 VirtualBox에서 만들어 놓은 VirtualBox Host-Only Ethernet Adapter가 존재합니다. 만약에 구 버전의 VirtualBox를 사용하시면 만들어져 있지 않을 수 있어 새로 만들어야 합니다. 그 후 ssh로 접속하고자 하는 PC의 설정을 들어갑니다. 저는 Ubuntu_22_04_2_Ros2_Humbl.. 2023. 11. 21.
Ubuntu 크롬 원격 데스크톱 연결 https://velog.io/@moey920/%EC%9A%B0%EB%B6%84%ED%88%AC-%ED%81%AC%EB%A1%AC-%EC%9B%90%EA%B2%A9-%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-%EC%84%A4%EC%A0%95-%EB%B8%94%EB%9E%99%EC%8A%A4%ED%81%AC%EB%A6%B0-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95 우분투 크롬 원격 데스크톱 설정, 블랙스크린 해결 방법 안녕하세요!오늘은 서버를 이동시킬 일이 있어서 원격 데스크톱을 설정하려고 합니다.우분투 서버에서 원격 데스크톱을 열어놓고 어디서든 접속하려했는데, mac의 경우 아주 수월하게 진행되나 velog.io 2023. 7. 12.
Ubuntu 20.04 RTX 4090 딥러닝 환경 구축 1. APT 업데이트 및 common 드라이버 설치 sudo apt-get update sudo apt install -y ubuntu-drivers-common 2. 드라이버 확인 sudo ubuntu-drivers devices 3. nvidia 525 선택 sudo apt install nvidia-driver-525 sudo reboot 4. nvidia 드라이버 잘 설치되었는지 확인 nvidia-smi 5. cuda 11.8 설치 https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_.. 2023. 7. 6.
[Pytorch] tensor 를 이미지로 저장하기 방법 1. torchvision.utils 사용 from torchvision.utils import save_image save_image(tensor_data, 'image_path/image_name.png') 방법 2. PIL 이미지로 변경 후 저장 transforms 를 이용하여 Image 로 변경 import torchvision.transforms as T from PIL import Image transform = T.ToPILImage() img = transform(tensor_data) img.save("image_path.png") 방법 3. tensor -> numpy -> Image import numpy as np from PIL import Image np_arr = np.a.. 2023. 6. 24.
[Pytorch] 이미지 데이터셋을 torchvision을 사용해서 증가 시키기 import cv2 import os import torch import torchvision from torchvision.utils import save_image file_path = './image/train/' filenames = os.listdir('./image/train/') for filename in filenames: img = cv2.imread(os.path.join(file_path, filename), cv2.IMREAD_COLOR) img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) transform = torchvision.transforms.ToTensor() img = transform(img) transform = torchvision.tra.. 2023. 6. 24.
[Python] 파일 이름 한번에 바꾸기 import os file_path = './image/train' #파일이 존재하는 디렉터리 경로 file_names = os.listdir(file_path) #파일들을 리스트 형태로 바꿔줌 i = 1 for name in file_names: src = os.path.join(file_path, name) dst = str(i) + '.jpg' dst = os.path.join(file_path, dst) os.rename(src, dst) i += 1 2023. 6. 24.
[Windows->Ubuntu 원격 데스크톱 연결] 윈도우 환경에서 리눅스 원격 접속하 1. xrdp 설치 sudo apt install xrdp 2. xrdp 설치여부 확인 systemctl status xrdp 3. xrdp 명령어 실행 : service xrdp start 재시작 : service xrdp restart 중지 : service xrdp stop 4. ※ 접속했는데 검정 화면만 뜰경우 1. vi /etc/xrdp/startwm.sh 2. 밑에 세줄을 추가 unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIME_DIR $HOME/.profile 5. 접속 했는데 키보드 마우스가 안 될 경우 sudo apt-get install xserver-xorg-input-all sudo vi /etc/X11/xrdp/xorg.conf 아래로 내리다 해.. 2023. 6. 24.
[ROS] CMake Error at /opt/ros/noetic/share/catkin/cmake/empy.cmake:30 (message): ROS 에러 발생 catkin_make 하는데 아래와 같은 에러가 발생함 -- Could NOT find PY_em (missing: PY_EM) CMake Error at /opt/ros/noetic/share/catkin/cmake/empy.cmake:30 (message): Unable to find either executable 'empy' or Python module 'em'... try installing the package 'python3-empy' Call Stack (most recent call first): /opt/ros/noetic/share/catkin/cmake/all.cmake:164 (include) /opt/ros/noetic/share/catkin/cmake/cat.. 2023. 6. 7.
우분투(Ubuntu) 설치시 검은화면 해결 1. usb 부팅을 시키고 e키를 눌러 grub옵션에 들어간다. 2. quite splash라는 문구 전에다가 nouveau.modeset=0를 추가해준다. 3. ctrl+x를 눌러 2번에서 작성한 옵션으로 부팅한다. 4. 해상도에 따라 설치 2023. 6. 7.
Virtual Box 게스트 확장 이미지 안될 때 장치 - 게스트 확장 CD 이미지 삽입- 그 후 왼쪽에 CD 선택 - CD 폴더 내에서 터미널 실행 후 sh autorun.sh 2023. 6. 6.
ROS catkin 빌드 후 패키지를 못찾는 문제 echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc source ~/.bashrc 2023. 6. 6.
반응형