OS

    [vagrant]생성 후 Permission denied(public key)나오는 오류

    The Start of Case 평소처럼 vagrant를 이용해 VM을 생성해서 작업할께 있어서 생성하고 연결 중 다음과 같은 에러를 만났다. $ vagrant ssh vagrant ssh fails with error : Permission denied (publickey) ???????? 평소에 잘되다가 왜 안되지하다가, 바꾼 Vagrantfile도 살펴보고 googling도 열심히 해본결과 다음과 같은 실수를 했다. My mistake 현재 나의 Vagrantfile은 다음과 같다. # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant_API_Version ="2" Vagrant.configure(Vagrant_API_Version) do |config| confi..

    [Linux] UTS namespace 맛보기

    UTS namespace 맛보기 컨테이너 공부를 하다가 네임스페이스라는 부분이 재밌어서 다양한 네임스페이스에 대해서 공부중입니다. 그 중 UTS 네임스페이스는 컨테이너마다 호스트네임을 부여할 수 있는 특징을 가집니다. 또한 네트워크 네임스페이스를 통해 네트워크 인터페이스 격리도 할 수 있습니다. 테스트 환경은, Vagrant 2.2.14 ubuntu/bionic64 box 컨테이너가 호스트네임을? IP를? 실제로 가상 머신이 아니라 프로세스로 다루는 컨테이너가 고유한 호스트네임을 가지면서, 가상 네트워크 인터페이스와 컨테이너만을 위한 내부 IP를 가지는게 아주 신기했습니다. 간단하게 nginx 컨테이너를 띄우고 $ docker run --name nginx01 -d nginx:latest $ docker..

    [OS] Operating System Structure

    Operating Systems vary greatly in their makeup internally COMMONALITIES: Multi-Programming Time Sharing ( Multitasking ) 1. Multi-Programming A single user cannot, in general, keep eigher the CPU or the I/O devices busy at all times Multi-programming increases CPU utilization by organizing jobs (code and data) so that the CPU always has one to executed. Multi-Programmed Systems provide an enviro..

    [Linux] SSH timeout Configuration

    Background Terraform으로 provisioner를 사용하는 중 계속해서 SSH timeout이 발생 -> "lost connection"의 에러가 발생했다. 해결은 다른 방법이였지만, SSH timeout문제가 발생할 수 있어서 정리해 두는게 좋겠다. SSH timeout? SSH timeout을 설정하지 않은 초기값은 ssh 연결시, 연결 종료 전까지 계속 유지되게 설정되어있다. 이는 보안상으로 위험할 수 있기 때문에 일정 시간 후에 자동으로 ssh 연결이 끄늫어지도록 설정해두는게 보안상 유리하다. # /etc/ssh/sshd_config #ClientAliveInterval 0 #ClientAliveCountMax 3 ClientAliveInterval 0 : Client가 살아있는지 ..

    [Linux] Linux timezone 설정 명령어

    Background 다른 실습 중 conf 파일을 파일명+date.bak으로 백업해서 진행중이다. Linux 배포판 초기에는 UST/PST 등의 기준으로 설정되어있다. Common Ubuntu and CentOS Ubuntu version >= 16.04 CentOS >= 7 $ date Mon Jan 11 09:17:45 KST 2021 Version 1. tzdata를 ln으로 링크 /usr/share/zoneinfo 파일에서 나라별 timezone을 확인할 수 있다. /usr/share/zoneinfo 경로의 파일과 링크 $ ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime Version 2. timezonectl 이용 $ timedatectl set-t..

    [OS] Computer System Architecture : Processors

    Types of Computer System based on number of General Purpose Processors 1. Single Processor Systems 2. Multiprocessor Systems 3. Clustered Systems 1. Single Processor Systems One main CPU capable of executing a general purpose instruction set including instructions from user processes. Other special purpose processors are also present which perform device specific tasks "Sepecial purpose processo..