본문 바로가기

전체 글27

Linux(Ubuntu) 최신 CMake 설치하기 1. Cmake 다운로드 아래 홈페이지 또는 wget 링크 주소로 최신 버전의 CMake 파일 다운로드 현재 최신 Release 버전은 v3.22.3이나 추후 더 높은 버전이 나올 수 있기에 최신 확인 버전 확인 필요 1.1 Cmake 공식 홈페이지 https://cmake.org/download/ Download | CMake Current development distribution Each night binaries are created as part of the testing process. Other than passing all of the tests in CMake, this version of CMake should not be expected to work in a production e.. 2022. 3. 4.
Linux User 계정 등록 방법 1. Linux(Ubuntu) User 계정 등록 1.1 ueradd 방법 $ sudo useradd -m user $ sudo passwd user New password: Retype new password: passwd: password updated successfully $ ssh user@172.21.26.240 user@172.21.26.240's password: Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.13.0-35-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/a.. 2022. 3. 4.
udev C 코드 프로그램 [네트워크 디바이스 확인] 1. 네트워크 디바이스 예제 코드 #include #include #define SYSPATH "/sys/class/net" #define VIRTUALPATH "/sys/devices/virtual/net" int main(int argc, char *argv[]) { struct udev *udev; struct udev_device *dev, *dev_parent; char device[128]; /* verify that we have an argument, like eth0, otherwise fail */ if (!argv[1]) { fprintf(stderr, "Missing network interface name.\nexample: %s eth0\n", argv[0]); return 1;.. 2022. 3. 2.