본문 바로가기

반응형

sangchul.kr

[리눅스] sysstat (sar) sysstat (sar) ## 소스 설치 http://pagesperso-orange.fr/sebastien.godard/download.html wget http://pagesperso-orange.fr/sebastien.godard/sysstat-9.0.5.tar.gz [root@localhost sysstat-9.0.5]# ./configure [root@localhost sysstat-9.0.5]# make [root@localhost sysstat-9.0.5]# make install [root@localhost sysstat-9.0.5]# cat /etc/cron.d/sysstat #run system activity accownting tool every to minutes */10 * * .. 더보기
[리눅스] localtime 한국(서울)로 변경하기 localtime 한국(서울)로 변경하기 localtime # ls -al /etc/localtime -rw-r--r-- 1 root root 3519 Feb 26 2006 /etc/localtime 한국(서울) localtime 으로 변경하기 # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime # ls -al /etc/localtime lrwxrwxrwx 1 root root 30 May 15 01:02 /etc/localtime -> /usr/share/zoneinfo/Asia/Seoul 시간 동기화 rdate -s time.bora.net && clock -w 더보기
[보안] rootkit hunter (rkhunter) 설치 1. Rootkit 설치 옵션 설정 Rootkit Hunter installer 1.2.13 Usage: ./installer.sh Ordered valid parameters: --help (-h) : Show this help. --examples : Show layout examples. --layout : Choose installation template. The templates are: - default: (FHS compliant; the default) - /usr - /usr/local - oldschool: old version file locations - custom: supply your own installation directory - RPM: for building RPM'.. 더보기
[crontab] 시간 동기화 [crontab] 시간 동기화 [root@scbyun slave]# crontab -e 설정 00 03,15 * * * /usr/bin/rdate -s time.bora.net && clock -w &> /dev/null [root@scbyun slave]# crontab -l 확인 00 03,15 * * * /usr/bin/rdate -s time.bora.net && clock -w &> /dev/null 더보기
[리눅스] rsync 설치 [rsync Server 설치] [root@sangchul src]# wget http://rsync.samba.org/ftp/rsync/rsync-3.0.7.tar.gz [root@sangchul src]# tar xvfz rsync-3.0.7.tar.gz [root@sangchul rsync-3.0.7]# ./configure [root@sangchul rsync-3.0.7]# make [root@sangchul rsync-3.0.7]# make install [root@sangchul rsync-3.0.7]# vi /etc/xinetd.d/rsync # default: off # description: The rsync server is a good addition to an ftp server, .. 더보기
[WEB 보안] John the ripper 설치 (johnripper) John the ripper 설치 1. 내려받기 # wget http://www.openwall.com/john/g/john-1.7.6.tar.gz 2. 압축해제 # tar xvfz john-1.7.6.tar.gz 3. 설치하기 # cd john-* # cd src # make # make clean generic # cd ../run 4. 실제 파일 복사 ./unshadow /etc/passwd /etc/shadow > userlist.txt 5. 실행하기 ./john userlist.txt > john_ripper.log 6. john_ripper 스크립트 # vi john_ripper.sh -------------------------------------------------------------.. 더보기
CentOS 7에서 고정 IP 주소를 설정하는 방법(ifcfg-eth0 IP 고정 설정) CentOS 7에서 고정 IP 주소를 설정하는 방법(ifcfg-eth0 IP 고정 설정) 1. 네트워크 설정 파일 수정 고정 IP 주소를 설정하기 위해 /etc/sysconfig/network-scripts 디렉토리에 있는 네트워크 설정 파일을 편집합니다. 일반적으로 이 파일들의 이름은 ifcfg-인터페이스명 형식입니다. 예를 들어, 이더넷 인터페이스의 이름이 eth0인 경우, ifcfg-eth0 파일을 편집합니다. sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 2. 네트워크 설정 파일 편집 편집기가 열리면 다음과 같이 설정을 변경합니다. BOOTPROTO=none # DHCP를 사용하지 않음 ONBOOT=yes # 부팅시 자동으로 인터페이스를 활성화 IPADD.. 더보기
[BIND] named.conf 옵션 named.conf의 options { }; 구문 -------------------------------------------------------------------------------- 네임 서버에 대한 전체적인 옵션 설정 부분임. options { allow-transfer { 127.0.0.1; 192.168.10.4; }; directory "/var/named"; } -------------------------------------------------------------------------------- options { [ version version_string; ] [ directory path_name; ] [ named-xfer path_name; ] [ dump-file .. 더보기

반응형