Files
wsl-ArchLinux/README.md

88 lines
1.7 KiB
Markdown

# Setup ArchLinux in WSL
## Sources
- [arch linux wsl docs](https://wiki.archlinux.org/title/Install_Arch_Linux_on_WSL)
## Setup User
Set root password
```sh
passwd
```
Install sudo
```sh
pacman -Syu
pacman -S sudo nvim vi nano
groupadd sudo
visudo # Uncomment %sudo ...
```
Create the user
```sh
useradd -u 1000 -g 1000 -m -s /bin/bash woelke
usermod -aG sudo woelke
```
Set a password
```sh
passwd woelke
```
Set wsl default user and restart wsl in powershell via `wsl --terminate archlinux`
```sh
tee -a /etc/wsl.conf <<'EOF'
[user]
default=woelke
EOF
```
## Setup Dotfiles
Setup ssh access to https://gitea.der-seb.space
```sh
ssh-keygen ...
tee -a /home/woelke/.ssh/config <<'EOF'
Host gitea.der-seb.space
User git
HostName gitea.der-seb.space
IdentitiesOnly yes
IdentityFile ~/.ssh/gitea-der-seb-space-access
EOF
```
[Install woelke dotfiles](https://gitea.der-seb.space/seb/dotfiles)
## Knows Problems
* Installation error: docker, docker-compose
* When Docker Desktop is installed on the host system, it might try to link its docker and docker-compose setup to the arch linux instance,
* Disable wsl-integration in Docker Destkop Settings
* Remove docker, docker-desktop symlinks
## TODOs
move zsh to gitea
- run and fix dotfiles install zsh scripts
faield: dotfiles install vim scripts 2 ----> "./install_plugins.sh",
write down in which order we should run the dotfiles scirpts yay, tools zsh vim ...
- [Install OhMyZsh](https://github.com/woelke/ohmyzsh) <--- problem: git clone git@github.com:woelke/dotfiles.git ~/.dotfiles
arch linux wsl docs
- 2.2 Open URLs in the WSL hosts browser
- 2.3 Run graphical applications with WSLg