반응형

Development 80

[Linux] ssh 다른 포트로 접속하기

ssh 서버로 접속할 때, 기본포트는 22번이지만 특정포트를 지정하여 바꿔놓을 경우도 있다. 이 때, 접속하기 위한 방법은 다음과 같다. $ ssh -p포트 아이디@서버주소 $ ssh 아이디@서버주소 -p포트 ref. https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_ssh_%EB%8B%A4%EB%A5%B8_%ED%8F%AC%ED%8A%B8%EB%A1%9C_%EC%A0%91%EC%86%8D_-p 리눅스 ssh 다른 포트로 접속 -p - 제타위키 다음 문자열 포함... zetawiki.com

Development/Linux 2021.08.13

[Ubuntu] 한글 입력 세팅

Ubuntu 18.04에서 한영키를 눌러 한글과 영어를 입력할 수 있도록 설정해보겠습니다. 1. Language Support setting ● Run "Language Support" ● Check "IBus" setting and Run "Install / Remove Languages..." ● Check "Installed" and "Apply" ● Check "한국어" 2. ibus-setup setting ● Run "ibus-setup" $ ibus-setup ● Run "Add" ● Run "more" ● Run "Korean" and Click "Hangul" and "Add" ● Check "Korean-Hangul" ※ 만약 Hangul이 보이지 않는다면, reboot를 통해 문제를 ..

Development/Linux 2021.08.10

[Ubuntu] ssh 서버 설치 및 동작 확인

ssh 서버 설치 및 동작 확인 ssh 확인 패키지 설치 확인 $ dpkg --get-selections | grep ssh libssh-4:arm64install libssh-gcrypt-4:arm64install libssh2-1:arm64install openssh-clientinstall openssh-serverinstall openssh-sftp-serverinstall ssh-import-idinstall ssh 동작 중인지 확인 $ service ssh status ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) A..

Development/Linux 2021.07.20

[Nvidia] NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Jetson SDKManger를 설치하고 nvidia-smi를 실행하면 아래와 같이 뜨며, 그래픽카드를 사용할 수 없었다. $ nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. 아래의 링크를 따라서, nvidia driver를 다시 설치하여 문제를 해결하였다. https://bluecolorsky.tistory.com/52 [정보] nvidia-smi 실행 시 couldn't communicate with the NVIDIA driver 오류 해결하기 최근 딥러닝이 대세가 되면서 ..

Development 2021.06.18

[Ubuntu] 우분투 사용자 계정 비밀번호 변경 (passwd)

이번에는 우분투에서 사용자의 비밀번호를 잊어버렸을 경우, 변경하는 방법에 대해 알아보겠습니다. 1. passwd 일단, 사용자의 비밀번호를 변경하기 위해서는 Sudoers의 계정으로 접속할 수 있어야합니다. Sudoers 계정으로 접속하여 아래의 명령을 실행합니다. $ sudo passwd $user_id Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully 만약, 사용자 계정의 아이디를 모른다면, 아래의 명령을 실행하여 확인할 수 있습니다. $ cat /etc/passwd root:x:0:0:root:/root:/bin/bash ...(생략)... user_id01:x:1001:1001::/home..

Development/Linux 2021.05.31

[VScode] git 설치 및 VScode로 연동하기

git 설치 및 VScode로 연동하기 이번에는 git을 설치하고, visual studio code과 연결하는 방법을 알아보겠습니다. 0. 준비 1) GitHub 아이디 만들기 https://github.com/ GitHub - 세계가 소프트웨어를 빌드하는 곳 GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com 2) visual studio code 설치 https://code.v..

Development/VScode 2021.05.28

[백준] 1202번: 보석 도둑 (python)

https://www.acmicpc.net/problem/1202 1202번: 보석 도둑 첫째 줄에 N과 K가 주어진다. (1 ≤ N, K ≤ 300,000) 다음 N개 줄에는 각 보석의 정보 Mi와 Vi가 주어진다. (0 ≤ Mi, Vi ≤ 1,000,000) 다음 K개 줄에는 가방에 담을 수 있는 최대 무게 Ci가 주어진다. (1 ≤ Ci www.acmicpc.net import sys import heapq N, K = map(int, sys.stdin.readline().split()) MV = [list(map(int, sys.stdin.readline().split())) for _ in range(N)] bags = [int(sys.stdin.readline()) for _ in range(..

반응형