sudo pacman -S python python-pip git --noconfirm --needed
git clone https://github.com/smzm/mydotfiles.git
cd mydotfiles # always run the script from this directoryand Use dotfile_installation.py python file for installing programms and dotfiles.
-
- Update wsl in windows :
wsl.exe --update - Download yuk7/ArchWSL installer zip, pick a folder and run
arch.exein that folder.
- Update wsl in windows :
sudo pacman-key --init
sudo pacman-key --populate
# sudo pacman-key --refresh-keys
sudo pacman -Sy archlinux-keyring
pacman -Syyu --noconfirmgroupadd sudo
sed -i '/^#.*%wheel ALL=(ALL:ALL) ALL/s/^#//' /etc/sudoersuseradd -m -G wheel,sudo -s /bin/bash <username>
passwd <username>
su <username> ; cd ~Change
<username>too whatever you want.
sudo pacman -S python python-pip git --noconfirm --needed
git clone https://github.com/smzm/mydotfiles.gitcd mydotfiles # You must first change directory to 'mydotfiles' and then run the python code to work properly.
python dotfile_installation.pyAfter running
dotfile_installation.pyif you don't have needed packages script install it automatically but you will encounter with anNameErroraboutinquirerpackage. to resolve the issue run script again withpython dotfile_installation.py.
-
Just run
wsl --set-default Archin windows command shell. -
To setting default user in windows command shell got to the arch direcctory and run :
Arch.exe config --default-user <username> -
Config you windows terminal settings like this
-
If you’re using WSL 0.67.6 and above (see
wsl --version), systemd is natively supported. To enable it, edit/etc/wsl.confand then restart the distro.
[boot]
systemd=true
- Disable regenrating
reslvconfin/etc/wsl.conf:
[network]
generateResolvConf = false
- Create a file with the name :
/etc/systemd/resolved.conf.d/10-cloudflare.conf
DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001
enable and restart resolved :
sudo systemctl enable systemd-resolved.service
sudo systemctl restart systemd-resolved.service
After installing Neovim :
For importing pip packages in pylsp :
- open
~/.local/share/nvim/mason/packages/python-lsp-server/venv/pyvenv.cfgand setinclude-system-site-packages = true
