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
Raspbian Ubuntu

Ubuntu SSH OTP

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

Continue Reading
Raspbian

Upgrade Kernel

1. Check Kernel version uname -a /opt/vc/bin/vcgencmd version   2. Download rpi-update script & Run sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update sudo chmod +x /usr/bin/rpi-update sudo rpi-update   3. Reboot sudo reboot   4. Before & After

Continue Reading
Raspbian

Install APM on Raspbian(Ubuntu)

1. 개요 Ubuntu에서 APM을 설치한다. 설치 순서 : Apache, MySQL, PHP, phpMyAdmin   2. Install APM 1) Apache 웹 서버 설치 apt-get install -y apache2 – 소유권 설정 : www-data 유저, 그룹에게 /var/www/html 디렉토리 권한 할당 chown -R www-data:www-data /var/www/html   – conf 파일 ; 환경설정 파일 /etc/apache2/apache2.conf – Data Directory /var/www – App Directory /usr/lib/apache2/ […]

Continue Reading
Back To Top