1. Intro I want to configure OTP to use SSH connection to Ubuntu server. 2. Setup 2.1. install google OTP sudo apt install libpam-google-authenticator 2.2. setup pam.d, sshd config # pam.d 맨 위에 추가시 Login ID → OTP code → PW 맨 아래 추가시 Login ID → PW → OTP code nullok : otp […]
Write Timestamp on Notepad++
1. Intro If you want write timestamp on notepad++ like notepad(windows) shortcut F5 2. How to do? 2.1. Install Plugin Notepad++ > Plugins > Install “TextFX Characters” 2.2. Set Shortcut Notepad++ > Settings > Shortcut Mapper… > Plugin commands > “I:Date & Time – short format” Double Click
md5sum on Windows
1. Command certutil -hashfile [File] MD5
set timezone
1. Intro Set timezone 2. Command ll /usr/share/zoneinfo/Asia/Seoul sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
Deny crawling of specific pages
<meta name=”robots” content=”noindex”>
Clean unuse kernel
1. Intro If you have an old kernel that you are not using, you should delete it. Because it fill up the /boot capacity. 2. How to do? 2.1. check kernel & check disk usage # current kernel uname -a # list kernel rpm -q kernel cat /etc/grub.conf | grep title # disk usage […]
ELK vs EFK
# ELK Elasticsearch Logstach Kibana # EFK Elasticsearch Fluentd Kibana
Change interface name
1. Intro If change interface name, then modify rules file ex> eth1 → eth0 2. How to do? vi /etc/udev/rules.d/70-persistent-net.rules ; PCI device 아래 주석 삭제
screen
1. Intro Use multiple shell windows from a single SSH session. Keep a shell active even through network disruptions. Disconnect and re-connect to a shell sessions from multiple locations. Run a long running process without maintaining an active shell session. ref> https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/ 2. Install yum install screen 3. Command # session list 확인 […]
Show MailPlus maillog
1. Command tail -f /var/packages/MailPlus-Server/target/var/aggr_log/aggr_maillog