본문 바로가기

Linux13

무료 SSL 인증서: certbot 사용하기 certbot SSL wildcard 갱신순서 기존에 _acme-challenge 로 등록된 DNS TXT 모두 삭제 action: DNS name: _acme-challenge 삭제 certbot 설치, certbot 명령어 실행 action: apk add certbot or apt-get -y install certbot 콘솔창에 나온 DNS name, value DNS TXT 타입으로 저장 action: DNS TXT 생성 DNS TXT 저장하는데 시간이 걸림 1차 DNS 저장 후 콘솔에서 엔터, 2차 DNS 내용나옴 2차 DNS TXT 저장 후 콘솔에서 엔터 Successfully received certificate. Certificate is saved at: /etc/letsencrypt/.. 2024. 1. 4.
vim 옵션 설정 파일 .vimrc .vimrc 파일 첨부 필요한 옵션만 사용하고 사용하고 싶지 않은 옵션 앞에 "(큰따온표) 붙이면 된다. 아래는 텍스트 파일 내용이다. """"""""""""""""""""""""""""" "색깔 관련 부분 """"""""""""""""""""""""""""" syntax on color ron " 색깔 밝게 filetype on filetype indent on filetype plugin on """""""""""""""""""""""""""""""" "기본 설정 """""""""""""""""""""""""""""""" set sm " 추가된 괄호짝 보여주는 기능 set ruler " 커서가 항상보임 set history=1000 " 명령어히스토리 set cmdheight=1 " 하단의 명령줄을 위.. 2023. 4. 3.
우분투(ubuntu) 18.04 에서 도커(docker) 설치 방법 docker 설치 준비 $ sudo apt update $ sudo apt install apt-transport-https ca-certificates curl software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" $ sudo apt update $ apt-cache policy docker-ce 마지막 줄의 명령어를 입력하고 실행하게 되면 다음과 같은 메시지가 표시된다 docker-ce: I.. 2020. 6. 4.
edit json in bash install jq https://stedolan.github.io/jq/manual/ sudo apt-get install jq 사용방법 jsonStr='{ "key1": "value1", "key2": "value2", "key3": "value3" }' jq 'del(.key3)' 2020. 5. 31.
AWS S3 - ec2에 mount 하기 - s3fs보다 2배 빠르다 - goofys AWS CLI 설치 sudo apt-get update sudo apt-get install -y python-pip sudo pip install awscli goofys 설치 golang 으로 만들어진 goofys 가 s3fs와 2배의 속도(read, write 모두) 차이가 남 실제 테스트 결과 - 2.4 GB write to S3 s3fs - 5 min goofys - 2 min golang 설치 sudo add-apt-repository ppa:gophers/archive sudo apt-get update sudo apt-get install golang-1.9-go sudo ln -s /usr/lib/go-1.9 /usr/lib/go ubuntu 16.04에서 설치가 안될 경우 sudo ad.. 2019. 12. 31.
chkconfig 등록 / 설정 / 활용 [출처] http://blog.naver.com/couplewith/60007889350 [개요] mysql이나 apache와 같이 사용자가 직접 설치한 프로그램들을 부팅시 자동으로 실행하기 위해서는chkconfig와 ntsysv를 사용한다. chkconfig를 알기 전에 runlevel과 init.d 그리고 setup과 같은 로딩 서비스 관리 툴의 연관을 이해 하여야 겠습니다. 가. About Run-level ? 리눅스나 유닉스는 runlevel이라는것이 존재 한다. 일반적으로 Window 에서 Safe 모드와 prompt모드와 일반 모드로 부팅시 선택 할수 있듯이, unix도 다양한 구동 방식이 존재한다 이것을 runlevel 이라고 하며 부팅시 선택 되도록 되어있다. 그리고 슈퍼관리자를 위해서 콘.. 2016. 3. 30.
wget 설치방법 CentOS7 최소설치 이후 wget 설치방법 yum 으로 wget 설치 $ yum -y upgrade, $ yum -y update error: cannot find a valid baseurl for repo $ yum -y install wget error: cannot find a valid baseurl for repo vi /etc/sysconfig/network-scripts/ifcfg-eth0 update NM_CONTROLLED=no restart the network interfase $ ifdown eth0 $ ifup eth0 1, 2번 다시 실행 2016. 3. 29.
리눅스 상의 해상도 변경 방법 (콘솔/터미널, X윈도) 콘솔창의 해상도 변경 방법 1. menu.lst 수정 가능 경우 grub설정예 #vi /boot/grub/menu.lst ------------------------------------------------------------------ default 0 timeout 25 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title=Windows XP PRO root (hd0,0) chainloader +1 title=My Gentoo Linux root (hd0,1) kernel /boot/bzImage root=/dev/hda2 vga=0x317vi /etc/X11/xorg.conf 2012. 1. 12.
[VirtualBox] vm_ware 리눅스에 호스트 전용 어댑터 사용해서 samba 접속하기 - VirtualBox 설정에서 네트워크 어댑터 추가한다. : 호스트 전용 어댑터 - Ubuntu 에서 Auto eth1 을 다음과 같이 한다. : 수동 192.168.56.10 255.255.255.0 - ifconfig 로 확인해 본다. - # sudo apt-get install samba smbfs - # sudo smbpasswd -a 아이디 2011. 4. 4.