HDLBits - Simple wire
·
HDLBits/Verilog
Wire의 사용법에 대한 문제input in을 output out에 연결하라는 간단한 문제이다. My Answermodule top_module(input in, output out); assign out = in;endmodule
HDLBits - Zero
·
HDLBits/Verilog
앞선 문제보다 쉽?다 그냥 0은 입력안해도 0이다~ 알려주는 문제Module Declarationmodule top_module( output zero );My Answermodule top_module( output zero );endmodule
HDLBits - Getting Started
·
HDLBits/Verilog
시작하면 가장 처음에 나오는 문제 그냥 1이 출력되는 모듈을 만드시오Module Declarationmodule top_module( output one );My Answermodule top_module( output one ); assign one = 1'b1;endmodule
HDLBits에서 문제 풀이
·
HDLBits/Verilog
HDL로 하는 백준 알고리즘 같은 사이트 https://hdlbits.01xz.net/wiki/Main_Page HDLBitsHDLBits is a collection of small circuit design exercises for practicing digital hardware design using Verilog Hardware Description Language (HDL). Earlier problems follow a tutorial style, while later problems will increasingly challenge your circuit desihdlbits.01xz.net 위의 목차에서 Basics 부터 차례대로 풀예정이다.
Sigaction에 대하여
·
42서울/리눅스
Signal이란 뭘까 Signal은 소프트웨어 interrupt로 프로세스에게 뭔가 발생했다는것을 알려주는 간단한 메시지를 "비동기"적으로 보내는 것이다. #include int sigaction (int signum, const struct sigaction *act, struct sigaction *oldact); // signum = 시그널 번호 (SIGINT, SIG_IGN, ...) // act = 설치할 시그널 핸들러 // oldact = 새 핸들러 설치전 시그널 핸들러 백업 (불필요시 NULL) Signal handler란 무엇인가? 시그널 처리를 위해 지정하는 함수 - 시그널을 받았을때 해당 함수를 호출한다. s_sigaction.__sigaction_u.__sa_sigaction = &s..
monitoring.sh 설정
·
42서울/리눅스
grep 사용법 grep 옵션/패턴/파일명 파일에서 옵션에 따른 패턴을 가진 문자열을 추출할때 사용한다. 파이프 라인과 함께 사용할 수 있다. ex) grep "찾을 단어" awk 사용법 awk는 입력 데이터를 라인 단위의 레코드로 인식하고 공백으로 구분된 필드로 분류한다. ex ) awk '{printf"%d/%dMB (%.2f%%)\n", $3, $2, $3/$2 * 100}' Sysstat 성능 모니터링 apt-get -y install sysstat vi /root/monitoring.sh Uname Unix name의 약자 유닉스 및 유닉스 계열 컴퓨터 운영 체제의 컴퓨터 프로그램의 하나로, 현재의 머신, 또 그 머신 위에 실행 중인 운영 체제에 대한 이름, 버전, 기타 자세한 정보를 출력해준다..
UFW, SSH 설치
·
42서울/리눅스
UFW 설치 포트 4242만 Open 마지막으로 작동 확인 su - apt-get install ufw -y ufw enable ufw default deny ufw allow 4242 ufw status verbose SSH 설치 su - apt install openssh-server vi /etc/ssh/sshd_config ---> vi로 편집 port 4242로 변경 PermitRootLogin no로 변경 systemctl restart ssh systemctl status ssh 종료후 Tools에서 Network들어간후 새로 create 설정후 머신을 키고 터미널에서 ssh id@192.168.56.1 -p 4242 입력한 다음 암호를 입력하면 ssh로 접근이 가능하다.
Linux 비밀번호 정책 설정
·
42서울/리눅스
Your password has to expire every 30 days. The minimum number of days allowed before the modification of a password will be set to 2. The user has to receive a warning message 7 days before their password expires. Your password must be at least 10 characters long. It must contain an uppercase letter and a number. Also, it must not contain more than 3 consecutive identical characters. The passwor..