운영체제/Linux 35

[Linux] Centos7에 Google OTP 설치 (2 Factor인증)

2 factor 인증을 위한 설정 방법이다. 구글 OTP인증이 아닌 다른 방식을 찾아 봤으나 대부분 구글 OTP를 이용하여 2Factor 인증을 하는 것으로 가이드가 되어 있다. 다른 블로그에도 상세 설명이 되어 있겠지만 필자는 필자의 기억을 위해 오늘도 끄적 거리는 거니 딴지는 사양하겠다. 물론 잘못 된 부분이 있을 경우에 대한 지적은 언제나 환영한다. 구글 OTP설정환경은 아래와 같다. 설정 환경 OS : CentOS 7.8 (3.10.0-1127.10.1.el7.x86_64) 비고 : NCP 내 인스턴스에서 사용 먼저 구글 OTP인증 패키지(google-authenticator)를 위한 EPEL repository를 설치 한다. (설치가 되어 있따면 skip한다.) [root@test ~]# yu..

운영체제/Linux 2020.11.11

[Linux] dell omsa command (옴사 명령어) - omreport

DELL 시스템에 Centos나 REdhat이며,OMSA사 설치 되어 있다면 OMSA명령어를 통해 DELL H/W를 모니터링 할 수 있다. HP시스템으로 치면 hplog -v 또는 hpsscli(또는 hpacucli)와 같은 명령어이다. 2020/07/28 - [분류 전체보기] - [Linux] Dell OMSA(OpenManage Server Administrator) 설치 [Linux] Dell OMSA(OpenManage Server Administrator) 설치 Dell Hardware를 운영할때 H/W시스템의 상태를 확인하고자 할 경우 OMSA를 설치해야 한다. OMSA => OpenManage Server Administrator 이며, 흔히들 옴사(?)라고 불리운다. 이전에는 설치 방법이 ..

운영체제/Linux 2020.11.05

[Linux] Apache https로 redirect 예외처리 (특정 URL만 redirect되지 않도록....)

"특정 URL에 대해 Redirect 예외 처리 하기" http://localhost 로 접근을 하면 https://localhost 로 redirect를 할 수 있다. 2020/10/12 - [운영체제/Linux] - [Linux] Apache http(80) -> https(433) redirect 설정 [Linux] Apache http(80) -> https(433) redirect 설정 Apache에서 http로 들어 올 경우 https로 리다이렉션 해주는 설정이다. 먼저 APACHE_PATH/conf/http.conf에서 module를 활성화 해준다. # vi APACHE_INSTALL_PATH/conf/httpd.conf ~(skip) LoadModule rewrite_m.. louky071..

운영체제/Linux 2020.10.26

[Linux] Apache http(80) -> https(433) redirect 설정

Apache에서 http로 들어 올 경우 https로 리다이렉션 해주는 설정이다. 먼저 APACHE_PATH/conf/http.conf에서 module를 활성화 해준다. # vi APACHE_INSTALL_PATH/conf/httpd.conf ~(skip) LoadModule rewrite_module modules/mod_rewrite.so ### 주석을 삭제 하거나 해당 라인을 추가 한다. Vhost 설정을 conf/httpd.conf 또는 conf/extra/httpd-vhosts.conf에서 했을 경우 설정한 config 파일에 아래 내용을 추가 한다. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{..

운영체제/Linux 2020.10.12

[Linux] 개행문자 입력하기 및 개행문자 삭제

Linux 상에서 개행문자 입력은 아래와 같이 할 수 있다. ctrl + v + m [root@localhost ~] # ^M ## ctrl + v + m 응용 ] 특정 text 파일에 개행문자를 삭제 하고자 할 경우 ... ### 개행문자가 포함되어 있을 경우 [root@localhost ~]# vim test.txt test test test ^M test123 test1234 ### 개행 문자 제거 [root@localhost ~]# sed -i "s/^M//" test.txt ### 개행 문자 제거가 되었을 경우 [root@localhost ~]# vim test.txt test test test test123 test1234

운영체제/Linux 2020.10.05

[Linux] SMB(SAMBA)를 이용한 AD Join ( AD LDAP)설정

환경 - OS : Centos 7.8 - Kernel : 3.10.0-1127.13.1.el7.x86_64 sssd를 이용한 AD LDAP연동하는 바업도 있지만 SAMBA를 이용한 LDAP연동도 가능하다. PKG설치 [root@TEST ~]# yum install -y authconfig samba-winbind samba-client samba-winbind-clients Join할 domain정보 resolv.conf에 추가 [root@test ~]# echo "domain adserver.test.net" >> /etc/resolv.conf [root@test ~]# vi /etc/nsswitch.conf ~(생략) passwd: files sss winbind shadow: files sss wi..

운영체제/Linux 2020.08.04

[Linux] Apache 2.4.43 + PHP 7.4.8 Source compile install (1)

오늘도 변함없이 기억을 지배하기 위해 끄적거린다. 설치 환경 - OS : Centos 7.8 - Kernel : 3.10.0-1127.13.1.el7.x86_64 간단히 설치를 하고 테스트를 하고자 한다면 yum으로 설치하면 된다. 여기서는 yum이 아닌 source compile로 설치를 진행하며, 사전 설치 작업이 꼭 필요하다. 설치에 앞써 의존성 PKG를 사전 설치 한다. Preinstall yum install -y epel-release yum install -y openldap libxml2 libcurl curl-devel gmp* yum install -y openldap-devel ibmcrypt libmcrypt-devel net-snmp-devel libxslt-devel yum in..

운영체제/Linux 2020.07.28

[Linux] Dell OMSA(OpenManage Server Administrator) 설치

Dell Hardware를 운영할때 H/W시스템의 상태를 확인하고자 할 경우 OMSA를 설치해야 한다. OMSA => OpenManage Server Administrator 이며, 흔히들 옴사(?)라고 불리운다. 이전에는 설치 방법이 제법까다로웠다고 한다. 하지만 필자가 설치한 환경에서는 설치가 아주 쉬웠다. 설치 환경 - H/W Model : Dell PowerEdge R730 & PowerEdge R430 & PowerEdge R620 - OS : Centos 7.7 설치 방법은 2가지이다. YUM으로 설치 하는 방법과 PKG파일로 설치하는 방법이다. 여기서는 YUM으로 설치 하는 방법으로 설치한다. STEP 1. OMSA설치를 위한 Dell Repository 추가 [root@DELL_R430 ...

운영체제/Linux 2020.07.28

[Linux] sectigo root/chain 인증서 추가

SSL 인증서 중 Comodo 인증서가 sectigo 인증서로 변경 되면서 일부 리눅스 시스템 내 Root/chain 인증서가 반영이 안되어 있어 JAVA SSL HandshakeException 및 curl 오류가 아래와 같이 발생한다. 간단히 curl명령어를 통해서도 확인이 가능하다. curl: (60) Peer's Certificate issuer is not recognized. [root@test1 ~]# curl https://test.com/index.php curl: (60) Peer's Certificate issuer is not recognized. More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL ..

운영체제/Linux 2020.01.28
반응형