Linux 공통 Raspbian Ubuntu

remove python2

1. Intro Delete python 2 (Default installed)   2. Command # check python2 version python –version # Delete python2 sudo apt purge python2.x-minimal # Install pip3 sudo apt install python3-pip # link python2 -> python3 sudo ln -s /usr/bin/python3 /usr/bin/python sudo ln -s /usr/bin/pip3 /usr/bin/pip # check python version python –version    

Continue Reading
Linux 공통

Fail crond

1. Intro If cron does not run with the following error   2. Cause Account password expired.   3. Solution Modify Account’s password max days 3.1. Check default Policy grep “PASS_MAX_DAYS” /etc/login.defs   3.2. Change account Policy chage -E -1 -M 99999 [username] grep “[username]” /etc/shadow  

Continue Reading
Linux 공통

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 확인 […]

Continue Reading
Back To Top