본문 바로가기

전체 글

(90)
wsl2 / zsh에서 miniconda 설치하기 velog.io/@exploit017/wsl2-zsh-%ED%99%98%EA%B2%BD%EC%97%90%EC%84%9C-miniconda-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0 wsl2 / zsh 환경에서 miniconda 설치하기 Flask를 사용해보고 싶기도 하고, 취업을 위한 빠른 러닝 커브를 위해 도서를 구입했습니다. 제목은 《 깔끔한 파이썬 탄탄한 백엔드 》 입니다. 아직 책 초반이지만 좋은 책의 기운이 뿜뿜 느껴 velog.io
Windows에 WSL2 설치하기 1. Microsoft store에서 Windows Terminal을 설치한다 2. Windows Terminal을 관리자 권한으로 실행 3. 윈도우 터미널 (PowerShell)에서 아래 명령어 차례로 실행 > dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart > dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 4. 재부팅 후, 윈도우 터미널에 wsl 명령어 입력 - 여기서 wsl 명령어가 안되면 Enable-WindowsOptionalFeature -Online -FeatureN..
GitHub: How to make a fork of public repository private? - stackoverflow.com/questions/10065526/github-how-to-make-a-fork-of-public-repository-private
Github 비밀번호 입력 없이 pull/push (ssh key 설정) GitHub에 pull, push를 할 때 매번 패스워드를 물어보는데 ssh key를 통해 이 과정을 생략할 수 있다. 본인은 윈도우 WSL2 환경이다. 1. SSH key 파일 생성 - 기존 생성해놓은 키가 있다면 .pub 파일 등과 같은 키파일이 있고 다음 명령어를 통해 확인하자 > ls -al ~/.ssh ls: cannot access '/home/user/.ssh': No such file or directory - ~/.ssh 디렉토리가 없는경우 아래와 같이 생성한다 > mkdir ~/.ssh > chmod 700 ~/.ssh > cd ~/.ssh - ssh key 생성하기 (메일에는 본인 github 계정에 등록한 이메일 주소) - -t rsa는 rsa라는 암호화 방식으로 키 생성 - SSH..
Escaping - Difference '\0' and '\n' in the C programming language? C에서 '\0'과 '\n'의 다른 점은? - '\0' : Null character (ASCII 0)으로, string의 terminator이다 (C strings are NULL-terminated) // char_1은 출력할 때 hello 뒤에 쓰레기값이 같이 출력될 수 있다 char_1[10] = "hello"; // char_2는 출력할 때, string (char array)는 '\0'을 만나면 끝난 것으로 간주하므로 // hello만 잘 출력된다 char_2[10] = "hello\0"; - '\n' : Newline (ASCII 10)으로, 개행문자를 의미한다 출처: What is the difference between '\0' and '\n' in the C programming lang..
Anaconda 사용법 버전 확인, 업데이트 conda --version conda update conda 가상환경 생성 create # 아나콘다 가상환경 생성 conda create --name(-n) 가상환경명 설치할패키지 conda create -name test python=3.5 conda create -n test python=3.5 가상환경 활성화(activate), 비활성화(deactivate) # 설치된 가상환경 리스트 확인 conda info --envs # 가상 환경 활성화 activate 가상환경명 # 가상 환경 비활성화 deactivate 가상환경명 패키지 설치(install), 패키지 확인(list) # 패키지 설치 conda install simplejson # 패키지 리스트 확인 conda list..
Ubuntu 18.04 - Resolution is stuck at 640x480, can't change it 어느날 Ubuntu에서 모니터가 640 x 480으로 고정되고, 다른 비율은 나타나지 않는 경우가 발생했다. nvidia graphic driver 문제인 것 같았다. 검색 - 출처: Graphics and resolution problems (Nvidia) in Ubuntu 18.04 after update $ sudo apt purge nvidia* ## if you reboot here , the computer will use Nouveau driver. ##check the recommended drivers $ ubuntu-drivers device ## that show me 390 as recommended but didn't work , 340 works in my case $ sudo ..
linux 'No space left on device', 'write error (file system full?)', df -i로 디스크 사용량을 확인한다 용량이 충분한데 사용하는 디스크가 100%이면, 파티션을 잘못 나눴거나 /var/log 나 /var/spool/이 가득 차서 생기는 오류이다 /var/log 비우기 - /var/log를 전부 지우거나 여유있는 디렉토리로 옮기기 sudo mv /var/log/* /home/사용자명/log sudo ln -s /home/사용자명/log /var/log sudo rm -rf /var/log/* /var/spool 비우기 - /var/spool안의 /var/spool/mail/를 전부 지우거나 여유있는 디렉토리로 옮기기 - 출처: khann.tistory.com/43