본문 바로가기

Others

(103)
[letsencrypt] https 인증서 갱신 중에 pip 오류 내부 소스의 뭔가 정책 때문에 `pip --version` 으로 실행하지 않고 `venv/bin/python -m pip --version` 으로 실행시킬 때 오류가 나는 문제로 보여지는데 마침 [구글링 해 보니](https://community.letsencrypt.org/t/pip-error-with-certbot-auto/88200) 유사 사례와 해결(?) 방법이 나와 있었고, 여기 나온 대로 `letsencrypt-auto` 파일을 에디터로 열어서 `pip_version = StrictVersion(check_output([‘pip’, ‘–version’]).decode(‘utf-8’).split()[1])` 부분과 `command = ['pip', 'install', '--no-index', '..
VSCode에서 항상 새탭으로 파일 열기 VSCode에서 Explorer 에서 파일을 열때 또는 Ctrl+p로 파일을 열때 활성화되어있던 에디터가 수정된 파일이 아니라면, 동일 에디터에서 파일을 열리게 되어있습니다. 설명이 좀 어려운데 만약 A파일을 보는 상태에서 B파일을 열려고 합니다. A파일이 수정중이라면 -> 새탭에서 B파일이 열림 A파일이 수정된게 없다면 -> A파일이 닫히고 B파일이 열림 성향마다 다르겠지만 저는 항상 새탭으로 열리는것을 선호하기 때문에 설정을 바꿔서 사용합니다. Ctrl+p를 눌러 settings.json 파일을 열고 workbench.editor.enablePreview 속성을 false로 추가\ "workbench.editor.enablePreview": false 출처:https://sub0709.tistory...
우분투 리눅스 타임존 설정 (ubuntu linux timezone setting) timezonectl 사용 한국으로 설정 timedatectl set-timezone 'Asia/Seoul' GMT 로 설정 timedatectl set-timezone 'GMT' 전체 타임존 목록은 list-timezones 옵션 사용 timedatectl list-timezones tzdata 를 ln 으로 링크 tzdata 설치 sudo apt install tzdata symbolic link 한국 ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime GMT ln -sf /usr/share/zoneinfo/GMT /etc/localtime Ref https://askubuntu.com/questions/3375/how-to-change-time-zone-s..
Google Cloud API with POSTMAN For reasons if you are not using the Google API-Explorer and if you are using POSTMAN client to access Google Cloud API’s then you would face with an interesting question about how to generate a token so that i could authenticate to google cloud Steps to Generate a Token Login to Google Cloud Console In API & Services -> Credentials create an OAuth 2.0 client ID Authorize the redirect URL Login ..
Unhandled rejection Error: EACCES: permission denied (npm install) sudo npm cache clean --force --unsafe-perm Wow... T.T
ubuntu에서 pbcopy 쓰기 (xclip) $ pbcopy < text.txt Mac OS에서 자주쓰는 복사 방법이다. text.txt를 clipboard에 임시 복사 하는 방법. 그래서 cmd+v로 쉽게 붙여넣을 수 있다. 근데, 우분투에서는 pbcopy가 없다. 대신 xclip이 있는데 xclip에서 clipboard 영역에 붙여넣으려면 아래와 같이 좀 길게 써야 한다. $ xclip -selection clipboard < text.txt 그니까 간단히 이걸 pbcopy로 alias해주면 되겠다. (더 짧은 명령어를 원한다면 pb도 좋을거다) ~/.bash_aliases에 들어가서 (없으면 만드셈) alias pbcopy='xclip -selection clipboard' 이렇게 써주면 끝. 없어서 처음 만든 거라면 맨 윗줄에 #!/bin/..
우분투(ubuntu) kernel 업그레이드 시 boot 용량 부족, 의존성 문제 사용하는 패키지를 최신 버전으로 업데이트 받기 위해 apt-get upgrade를 했는데 이후 재부팅하니 검은 화면에서 멈추는 현상 발생 grub에서 'Ubuntu용 고급 설정'으로 들어가 최신 커널이 아닌 직전 구 버전 커널로 들어가니 vfs unable to mount root fs on unknown-block(0 0) 오류 나오며 부팅 안됨 전전 구 버전 커널로 들어가 부팅 성공 df -h 로 용량 확인해보니 /boot 가 100% 인 것을 확인 리눅스 커널이 업데이트 될 때 /boot 용량 부족으로 일부 패키지가 설치되지 않은 것 /boot 용량 확보를 위해 dpkg -l "*4.4.0-*" | grep ^ii 명령어로 삭제하기 위한 예전 커널 목록 확인 아래와 같은 apt-get purge 명..
Error: getaddrinfo ENOTFOUND domain domain:port Check host file which like this ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost This solved the problem for me! After hours of search, I found that the /etc/hosts file on my mac was empty! After you change the file on the mac, run sudo killall -HUP mDNSRespond..