본문 바로가기

728x90

분류 전체보기

우분투(Ubuntu) apt 저장소(repository) 변경하기 우분투(Ubuntu) apt 저장소(repository) 변경하기기 1. apt 저장소 확인 현재 사용 중인 저장소 목록을 확인합니다. vim /etc/apt/sources.list 2. 기존 저장소 백업 저장소를 변경하기 전에 현재 설정을 백업해두는 것이 좋습니다. sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 3. 새 저장소 설정 새로운 저장소 정보를 설정하려면 /etc/apt/sources.list 파일을 수정합니다. vim 명령어로 apt 저장소 변경(vim의 치환 가능을 이용하여 변경) :%s/kr.archive.ubuntu.com/mirror.kakao.com/g sed 명령어로 apt 저장소 변경 sed -i 's/kr.archive.. 더보기
Ubuntu Server 22.04 LTS를 설치하는 방법 Ubuntu Server 22.04 LTS를 설치하는 방법(Jammy Jellyfish) Ubuntu 서버 설치 언어 설정 설치 프로그램 업데이트 사용 가능 키보드 설정 설치 유형 선택 네트워크 설정 프록시 설정 Ubuntu 아카이브 미러 구성 kr.archive.ubuntu.com/mirror.kakao.com 가이드 스토리지 구성 스토리지 구성 스토리지 구성 프로파일 설정 SSH 설정 타사(third-party) 드라이버 주요 서버 스냅 설치 시스템 설치 완료 로그인 로그인(시스템 정보 출력) 운영체제 정보 더보기
[리눅스] 우분투 기본 설정 우분투 기본 설정 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="20.04 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBU.. 더보기
[Mac] UTM Virtual Machines UTM Virtual Machines - 가상 머신 - https://getutm.app/install/ - https://mac.getutm.app/ - https://apps.apple.com/us/app/utm-virtual-machines/id1538878817 * Free developer accounts must re-sign every 7 days * Paid developer accounts must re-sign every 1 year UTM 설치 더보기
[리눅스] gitlab runner 설치 및 실행하기 gitlab runner 설치 및 실행하기 gitlab runner 설치 $ mkdir gitlab-runner $ cd gitlab-runner docker-compose.yml 편집 cat 설정 > CI/CD > Runners 섹션 docker-compose exec gitlab-runner bash gitlab-runner register $ docker-compose exec gitlab-runner bash root@acd54bbc5de3:/$ gitlab-runner register Runtime platform arch=amd64 os=linux pid=25 revision=bd40e3da version=14.9.1 Running in system-mode. Enter the GitLab i.. 더보기
[리눅스] Google OTP를 설치하는 방법 Google OTP를 설치하는 방법 google-authenticator 패키지 설치 $ yum install -y google-authenticator Google Authenticator 인증 파일 생성(QR Code 생성) $ google-authenticator -s ~/.ssh/google_authenticator Do you want authentication tokens to be time-based (y/n) y Do you want me to update your "/home/ec2-user/.ssh/google_authenticator" file? (y/n) y Do you want to disallow multiple uses of the same authentication token.. 더보기
[리눅스] 서비스(데몬) 등록 방법 리눅스 서비스(데몬) 등록 방법 chkconfig --add [서비스 명] chkconfig --level [서비스 명] chkconfig --del [서비스 명] chkconfig --list [서비스 명] CentOS 6 chkconfig 명령으로 서비스 관리 zabbix-agent 서비스 등록 chkconfig --add zabbix-agent zabbix-agent 서비스 확인 $ chkconfig --list | egrep zabbix zabbix-agent 0:off1:off2:off3:off4:off5:off6:off level 3, 5 일 경우 zabbix-agent 서비스 부팅 chkconfig --level 35 zabbix-agent on zabbix-agent 서비스 확인 $ chk.. 더보기
로컬 IP 및 공개 IP 찾는 방법(myip) 로컬 IP 및 공개 IP 찾는 방법(myip) vim ~/.bashrc myip() { externalip=`curl -SsfL ifconfig.co` localip=`ip route get 1.2.3.4 2>/dev/null | grep -Eo 'src [0-9.]+' | grep -Eo '[0-9.]+'` echo "Local IPADDR : $localip" echo "External IPADDR : $externalip" } source ~/.bashrc $ myip Local IPADDR : 10.100.3.188 External IPADDR : 3.14.11.88 더보기

728x90