ArchWSL
ArchWSL copied to clipboard
Problem with Docker and language change
When trying to execute the commands:
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
I manage to create the symbolic link and also add the $USER, however the first command which would be the initialization of docker gets my terminal stuck and I don't get any more feedback.
Also a problem with changing the Arch Linux language
I've already spent a few days looking for and trying various things and to no avail for both problems.
Same problem on systemctl start ollama
.
try typing wsl --update
in CMD/PowerShell with administrator rights
@PixelWandererZhou I've already updated WSL, checked for possible windows updates with windows update and winget update, and as a last resort I've formatted my machine around 10 times. I think it might be a configuration problem that I missed or even a problem with WSL itself.
try edit /etc/wsl.conf
[boot]
systemd=true
@PixelWandererZhou
the /etc/wsl.conf file is:
`` [boot] systemd=true
[automount] enabled = true options = "metadata" mountFsTab = true ``
and I just did a clean install of ArchWsl with the latest available version and just ran the basics of Docs configuration and just tried to change the language
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman -Syy archlinux-keyring
sudo pacman -Syyuu
``terminal response sudo localectl set-locale LANG=en_BR.UTF-8
Failed to connect to bus: No such file or directory ``
agora por hora ignorar a alteração da linguagem e vou seguir para apenas fazer a instalação do necessario para usar o yay e instalar todo o restante.
script that I save for installations on work machines:
passdw
echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel
useradd -m -G wheel -s /bin/bash {usuário}
passwd {usuário}
config --default-user {usuário}
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman -Syy archlinux-keyring
sudo pacman -Syyuu --noconfirm
sudo localectl set-locale LANG=pt_BR.UTF-8
sudo pacman -S --noconfirm neovim git yarn npm rust base-devel neofetch openssh go zsh docker docker-compose chromium
cargo install exa bat
cd /opt
sudo git clone https://aur.archlinux.org/yay-git.git
sudo chown -R cauaarch:cauaarch ./yay-git
cd yay-git
makepkg -si
yay -S --noconfirm zsh zsh-theme-powerlevel10k-git asdf-vm ddev-bin ttf-meslo-nerd-font-powerlevel10k powerline-fonts awesome-terminal-fonts neovim git yarn npm rust base-devel neofetch openssh go zsh docker docker-compose chromium unzip libyaml re2c gd postgresql-libs oniguruma libzip zip
echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting/
chsh -s /usr/bin/zsh
<.zshrc>
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/asdf-vm/asdf.sh
export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH
alias ls="exa --icons"
alias bat="bat --style=auto"
alias nf="neofetch"
<.zshrc>
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add php https://github.com/asdf-community/asdf-php.git
asdf plugin-add python
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf plugin-add rust https://github.com/code-lever/asdf-rust.git
asdf plugin-add lua https://github.com/Stratus3D/asdf-lua.git
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
@PixelWandererZhou
just like I said, the terminal crashes and /etc/wsl-conf
@PixelWandererZhou
just like I said, the terminal crashes and /etc/wsl-conf
What is your windows and wsl version
@PixelWandererZhou
just like I said, the terminal crashes and /etc/wsl-conf
What is your windows and wsl version
@PixelWandererZhou
just like I said, the terminal crashes and /etc/wsl-conf
What is your windows and wsl version
you can try to make a rootfs.tar yourself
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
@PixelWandererZhou
just like I said, the terminal crashes and /etc/wsl-conf
What is your windows and wsl version
I had same problem
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
Any progress?
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
Any progress?
i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
Any progress?
i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects
you can just
cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
Any progress?
i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects
you can just
cd ~ mkdir rootfs pacstrap rootfs base base-devel cd rootfs tar -cvf ~/rootfs.tar *
I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
Any progress?
i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects
you can just
cd ~ mkdir rootfs pacstrap rootfs base base-devel cd rootfs tar -cvf ~/rootfs.tar *
I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error
trypacman -S base-devel
first?
@PixelWandererZhou
assim como eu disse, o terminal trava e /etc/wsl-conf
Qual é a sua versão do Windows e do WSL
você pode tentar fazer um rootfs.tar sozinho
thanks for the idea, I'll study it and give it a try
Any progress?
i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects
you can just
cd ~ mkdir rootfs pacstrap rootfs base base-devel cd rootfs tar -cvf ~/rootfs.tar *
I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error
try
pacman -S base-devel
first?
yes, and I even installed it from scratch with the latest version of archlinuxwsl less than an hour ago
Somehow the error has been resolved, I downloaded the latest version available today (2024-05-21), did everything the documentation recommends and added just one thing, which was to remove the multilib package comment from /etc/pacman.conf
, so I'm closing the issue as resolved.