opkg update
Collected errors:
* opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable.echo "nameserver 8.8.8.8">/tmp/resolv.conf
rm -f /var/lock/opkg.lockopkg update
Collected errors:
* opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable.echo "nameserver 8.8.8.8">/tmp/resolv.conf
rm -f /var/lock/opkg.lockInstruções originais: https://murrahjm.github.io/Exporting-WSL-data/
Liste as distribuições WSL disponíveis:
wsl.exe -l
Distribuições do Subsistema do Windows para Linux:
Alpine (Padrão)
WLinux
from: https://github.com/shayne/wsl2-hacks/blob/master/README.md
I've done a few methods that have had various levels of success. My goal was to make it feel seamless for my workflow and have commands work as expected. What's below is the current version of the setup I use. It allows me to use the MS Terminal as well as VSCode's Remote WSL plugin.
With this setup your shells will be able to run systemctl commands, have auto-starting services, as well as be able to run snaps.
With cat /proc/cpuinfo find out your raspberry oi version, check table at: https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
Create boot up disk: https://wiki.alpinelinux.org/wiki/Create_a_Bootable_USB#Format_USB_stick
fdisk /dev/mmcblk0
* d - dele all partiotions
* n - create new partition
* p - primary partition
* 1 - Partition number 1Simulate an instalation using chroot on an Qemu machine
See this Qemu script to start an virtual machine on windows 10 with one disk to boot, 4 disks to simulate an RAID and 1 usbdisk, and 2 nic devices
Start Alpine from iso file and setup to save config into usbdisk
Hint: first user is root with no password
OBS: Do not setup disks yet
echo -e "/dev/sdf1\t/media/usb\tvfat\trw\t0\t0" > /etc/fstab
Inside wsl Alpine v3.12
sudo apk update
sudo apk add browserpass pass nano
cd ~/
wget https://gist.github.com/arvati/1d9ae3091017e3ba1209fd76552cd344/raw/44c4af0f86e056e94954580943d2980741f02ff5/pinentry-wsl-ps1.sh
chmod ug=rx pinentry-wsl-ps1.sh
#echo "pinentry-program /home/$USER/pinentry-wsl-ps1.sh" >> ~/.gnupg/gpg-agent.conf
echo "pinentry-program \"/mnt/c/Program Files/Git/usr/bin/pinentry.exe\"" >> ~/.gnupg/gpg-agent.conf