"WSL 나만의 설정"의 두 판 사이의 차이

20번째 줄: 20번째 줄:
<syntaxhighlight lang='acon'>
<syntaxhighlight lang='acon'>
[boot]
[boot]
hostname=wsl ## 추가
systemd=true
systemd=true
hostname = wsl ## 추가
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='powershell'>
<syntaxhighlight lang='powershell'>

2024년 10월 29일 (화) 15:19 판

1 개요

WSL 나만의 설정

2 파워쉘

{배포이름} config --default-user root
ubuntu config --default-user root
또는
debian config --default-user root

3 WSL 호스트명 변경

vi /etc/wsl.conf
[boot]
hostname=wsl ## 추가
systemd=true
wsl --shutdown

4 리눅스 쉘

apt update
apt install -y vim curl

echo ':set term=builtin_ansi' >> ~/.vimrc
echo "alias ll='ls -alF --color'" >> ~/.bashrc
echo 'PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\]:\[\033[33;1m\]\w\[\033[m\]\\$ "' >> ~/.bashrc

5 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}