우분투

우분투

[우분투] 재귀적으로 파일 및 폴더 제거

├── np4-bs256-da0-node4 │ ├── checkpoint.1.pth.tar (target_file) │ ├── checkpoint.2.pth.tar (target_file) │ ├── nccl (target_dir) │ └── torch.log ├── np4-bs256-da2-node5 │ ├── checkpoint.1.pth.tar (target_file) │ ├── checkpoint.2.pth.tar (target_file) │ ├── nccl (target_dir) │ └── torch.log ├── np4-bs256-da1-node6 │ ├── checkpoint.1.pth.tar (target_file) │ ├── checkpoint.2.pth.tar (target_file) ..

우분투

[우분투] 데스크탑 버전에서 서버 버전으로 변경

1. 우분투 서버에 필요한 패키지 설치 sudo apt install ubuntu-server sudo reboot 2. multi-user로 default target 변경 그래픽 세션을 시작하지 않음으로써 RAM 및 CPU 리소스를 절약 sudo systemctl set-default multi-user.target sudo reboot 3. 필요 없는 패키지 삭제 sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean sudo reboot

우분투

[우분투] 인피니밴드 인터페이스 이름 변경

1. IPoIB 인터페이스 하드웨어 주소 확인 ip a | grep ib 2. 설정 파일 (/etc/udev/rules.d/70-persistent-ipoib.rules) 수정 # This is a sample udev rules file that demonstrates how to get udev to # set the name of IPoIB interfaces to whatever you wish. There is a # 16 character limit on network device names. # # Important items to note: ATTR{type}=="32" is IPoIB interfaces, and the # ATTR{address} match must start with ..

우분투

[우분투] 인피니밴드 모드 변경

인피니밴드 드라이버(MLNX_OFED)는 설치되어 있다고 가정 (설치가 필요한 경우 참고) 1. MFT 시작 sudo mst start 2. vendor_part_id 확인 ibv_devinfo | grep vendor_part_id 3. 디바이스 설정 확인 (그랩을 통해 포트별 링크 타입만 확인 가능) sudo mlxconfig -d /dev/mst/{VENDOR_PART_ID} q sudo mlxconfig -d /dev/mst/{VENDOR_PART_ID} q | grep LINK_TYPE 4. 설정 변경 (TYPE_NUM: 0은 인피니밴드, 1은 이더넷) mlxconfig -d /dev/mst/{VENDOR_PART_ID} set LINK_TYPE_P1={TYPE_NUM} 5. 재부팅 sudo r..

우분투

[우분투] 비밀번호 입력 없이 sudo 사용

1. 설정 파일 열기 (visudo로 열거나 해당 파일 권한을 수정해야함) sudovi /etc/sudoers 2. 가장 아래 줄에 다음 라인 추가 후 저장 {USER} ALL=(ALL) NOPASSWD: ALL ALL --> 시스템 호스트 이름 (특정 호스트 이름만 지정 가능) (ALL) --> 터미널 이름 (특정 터미널만 지정 가능) NOPASSWD: ALL --> 모든 명령어에 대해서 실행 시 비밀번호를 묻지 않음

IntegerString
'우분투' 카테고리의 글 목록