본문 바로가기

Computer/Linux

(44)
Oracle server installation [Free] https://cloud.oracle.com/ Sequence of creating VM oracle cloud -> Create a VM instance > image and shape > select OS(Ubuntu) > Select CPU & Memory > Create * Ubuntu 22.02 does not support ssh-key as of June 8, 2022, use 20.04 instead. Setting reserved public IP Compute > Instance > Attached VNICs > instance click > IP4v address > instance edit > no public IP > update Compute > Instance > Attache..
SSL 무료로 설치 렛츠인크립트 Let's Encrypt sudo apt install python-certbot-apache #도메인 등록 이전에 호스트 ip 가 서버 ip로 변경이 되어있어야함 sudo certbot --apache -d domain.com #메일주소 입력 #사용약관 동의 y #이메일주소메일링리스트 등록 n # http 접속시 https로 리다이렉트 - 1 안한다(선택), 2 한다 # virtual host 80번포트에서 https로 redirect 후 ssl 적용 # 도메인파일 생성여부 확인 ls /etc/letsencrypt/live/ sudo a2enmod ssl sudo a2enmod cgid #default-ssl.conf 파일 설정 443 포트로 접속시 폴더이동 Python CGI를 활성화키 위해 아래 문구 삽입 nano /etc..
rclone Linux Versionhttps://namu.wiki/w/rclonehttps://rclone.org/docs/# Installation in case rclone is in packagesudo apt install rclone#Rclone version checkrclone version#installation without aptsudo apt-get install zipcurl https://rclone.org/install.sh | sudo bash#Configurationsudo rclone config#Copy from server to cloudrclone copy SOURCE TARGETrclone move SOURCE TARGET#ex)rclone copy --ignore-existi..
Diable sleep/hibernation mode in Ubuntu #Disables suspendsudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target #Enable suspendsudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
github #install github sudo apt-get install git # Config # one time setting sudo git config --global user.email "you@example.com" sudo git config --global user.name "Your Name" # program download sudo git clone GithubWebAddress # show status git status # remove file or folder git rm filename # 1 add changes sudo git add * or sudo git add filename # 2 commit, decribe changes sudo git commit -m "Updates"..
fdisk fdisk -l # /dev/sda1~~ 으로 검색이 될때 숫자 제외하고 파티션들 관리 실행fdisk /dev/sda #파티션 목록 p#파티션 삭제 d #파이션 생성 n#파티션 타입 l#파티션 저장 w
AUTOFS #AUTOFS installsudo apt install autofssudo nano /etc/auto.master#아래 문장을 #/misc /etc/auto.misc 밑에 삽입/media /etc/auto.ext --timeout 20 #저장크기 및 위치 확인fdisk -l #uuid 확인ls -al /dev/disk/by-uuid # 마운트되는 드라이브의 폴더명을 지정(=nas) 및 uuid 입력# /folderlocation1/folderlocation2 위치에 저장# folderlocation2는 보이지 않다가 cd foloderlocation2 입력해서 들어가면 활성화됨sudo nano /etc/auto.extnas -fstype=ext4,rw,noatime,data=journal,commit=..
User account control # Create new accountsudo adduser ID $ sudo useradd -m ID $ sudo passwd ID adduser는 홈폴더 생성[recommended] , useradd는 단순 계정만 생성 #create new group sudo groupadd GROUPNAME #remove groupsudo groupdel GROUPNAME #join ID into Group sudo usermod -a -G GROUPNAME ID # Grant super user permission sudo usermod -G groups GROUPS # attribute change # folder $ chown 속성:속성 foldersudo chown family:family /media/nas..