Unix/Linux/MacOS

파일 분할 및 합치기 (split)

파일 분할하기 split -d -a 4 -b 524288000 original_file split_ -d: 분할된 파일명 뒤에 연속적인 숫자를 붙여라-a 4: 숫자는 4자리로-b 524288000: 500MB 단위로 분할한다.original_file: 원본 파일명split_: 분할된 파일의 파일명 PREFIX >>분할 결과524288000 Nov 16 14:10 split_0000524288000 Nov 16 14:11 split_0001234883892 Nov 16 14:11 split_0002※원본은 그대로 유지된다. 파일 합치기cat split_* > original_file.copy 합친 파일 비교diff original_file […]

파일 분할 및 합치기 (split) 더 읽기"

lcdproc 설치

소스코드 다운로드: http://www.lcdproc.org/ ./configure –prefix=/usr –enable-drivers=allmakemake install cp -fv LCDd.conf /etc/sed -i “s/DriverPath=server\/drivers\//DriverPath=\/usr\/lib\/lcdproc\//g” /etc/LCDd.confchown -R nobody:nobody /usr/lib/lcdproc /etc/LCDd.conf echo “[Unit]” > /usr/lib/systemd/system/LCDd.serviceecho “Description=LCDd display daemon” >> /usr/lib/systemd/system/LCDd.serviceecho “Documentation=man:LCDd(8) http://www.lcdproc.org/” >> /usr/lib/systemd/system/LCDd.serviceecho “After=multi-user.target” >> /usr/lib/systemd/system/LCDd.serviceecho “” >> /usr/lib/systemd/system/LCDd.serviceecho “[Service]” >> /usr/lib/systemd/system/LCDd.serviceecho “Type=simple” >> /usr/lib/systemd/system/LCDd.serviceecho “ExecStart=/usr/sbin/LCDd -s 0 -f -c /etc/LCDd.conf” >> /usr/lib/systemd/system/LCDd.serviceecho “User=root” >> /usr/lib/systemd/system/LCDd.serviceecho “TimeoutStopSec=1s”

lcdproc 설치 더 읽기"

polkit error

“unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files” 오류 발생 시… 퍼미션 점검cd /chown root:root .chmod 755 . 실행 후 ls -al / 하여 .과 ..의 퍼미션 확인

polkit error 더 읽기"

rpm 옵션 정리

1. 설치 모드 -i : 패키지 최초설치 시 사용, 이전버전 있으면 설치안됨 -U : 패키지가 설치되어 있지 않다면 설치, 설치되어 있다면 업그레이드 -v : 설치과정을 출력 -h : 설치진행과정을 특수문자”#”으로 표시 -F : 이전 버전이 설치된 경우에만 설치, 업데이트라고 볼 수 있음 –force : 기존에 설치된 패키지와 그 파일을 강제로 다시 설치하도록 함 –nodeps :

rpm 옵션 정리 더 읽기"

Disable IPv6 on Linux

■IPv6 활성화 여부 확인 방법ip addr show | grep inet6 ■CentOS 7vi /etc/default/grub GRUB_CMDLINE_LINUX=”rhgb quiet”를 아래와 같이 수정한다.GRUB_CMDLINE_LINUX=”rhgb quiet ipv6.disable=1″ grub2-mkconfig -o /boot/grub2/grub.cfg ■Ubuntu 20.04.xxvi /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT=”maybe-ubiquity”를 아래와 같이 수정한다.GRUB_CMDLINE_LINUX_DEFAULT=”maybe-ubiquity ipv6.disable=1″ update-grub

Disable IPv6 on Linux 더 읽기"

Ubuntu Server 설치

1. iso 다운로드 https://ubuntu.com/download/server 에서 “OPTION 3″으로 다운로드 받는다. 2. 설치 3. 설치 후 작업 sudo passwd root su sed -i “s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g” /etc/ssh/sshd_config systemctl restart sshd apt-get -y install lrzsz

Ubuntu Server 설치 더 읽기"

spamassassin+dovecot+sieve script

■dovecot sieve plug-in 설치yum -y install dovecot-pigeonhole ■dovecot.conf 수정vi /etc/dovecot/dovecot.conf————————————————————# sieve 필터 설정protocol lda {  mail_plugins = $mail_plugins sieve}protocol lmtp {  mail_plugins = $mail_plugins sieve}———————————————————— ■90-sieve.conf 수정vi /etc/dovecot/conf.d/90-sieve.conf————————————————————sieve = file:~/sieve;active=~/.dovecot.sievesieve_default = /var/lib/dovecot/sieve/default.sieve———————————————————— ■default.sieve 작성 및 컴파일※스팸 폴더 Junk는 /etc/dovecot/conf.d/15-mailboxes.conf에 정의되어 있다. mkdir -p /var/lib/dovecot/sievevi /var/lib/dovecot/sieve/default.sieve————————————————————require [“fileinto”, “mailbox”, “variables”, “regex”]; if header :contains “X-Spam-Flag” “YES” { 

spamassassin+dovecot+sieve script 더 읽기"

위로 스크롤