OS
[Windows11] wsl2 + ubuntu 22.04 LTS 초기 기본 설정
grep.jj
2024. 3. 14. 23:50
내용
> sudo apt update > sudo apt upgrade > apt install net-tools > sudo apt remove openssh-server > sudo apt install openssh-server > vi /etc/ssh/sshd_config PasswordAuthentication yes PermitRootLogin yes > vi /etc/wsl.conf [boot] systemd=true > vi /etc/profile HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S " export HISTTIMEFORMAT > cd ~ > vi .bashrc 55라인 수정 (수정 전 내용 : PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ') PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] ' > source .bashrc > vi /etc/vim/vimrc set fileencodings=utf-8,euc-kr > add-apt-repository ppa:ytvwld/asciiquarium > apt-get update && sudo apt-get install asciiquarium > asciiquarium |
시행착오
1) 내가 자주 사용하는 초기 설정 기록 ! 스승님(?)께서는 잘 기억하면 좋지만... 우리들이 천재도 아닌데 어떻게 다 기억하냐며 잘 찾아 쓰는게 더 중요하다고 하셨다. 아쿠아리움 🐟🦀🐢 2) /etc/wsl.conf 설정 후, 재기동을 아무리 해도 systemctl이 적용되지 않을 때, wsl 버전을 업데이트해서 해결 > cmd 창 > wsl --update |