Last active
May 30, 2024 12:35
-
-
Save dospuntocero/195e493110568cf1b3aca55432e61c40 to your computer and use it in GitHub Desktop.
instalar localwp en wsl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install dependencies: | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get -y install libaio1 libncurses5 libnss3-tools rsync shared-mime-info desktop-file-utils libxshmfence1 libglu1 libatk1.0-0 libatk-bridge2.0-0 libgtk2.0-0 libgtk-3-0 libgbm-dev libasound2 libnuma-dev libxslt1.1 lxqt-sudo libzip4 | |
sudo apt --fix-broken install | |
sudo apt install wget | |
sudo apt install curl | |
curl -O http://snapshot.debian.org/archive/debian/20190501T215844Z/pool/main/g/glibc/multiarch-support_2.28-10_amd64.deb | |
sudo dpkg -i multiarch-support_2.28-10_amd64.deb | |
curl -O http://snapshot.debian.org/archive/debian/20141009T042436Z/pool/main/libj/libjpeg8/libjpeg8_8d1-2_amd64.deb | |
sudo dpkg -i libjpeg8_8d1-2_amd64.deb | |
sudo cp /usr/lib/x86_64-linux-gnu/libonig.so.5 /usr/lib/x86_64-linux-gnu/libonig.so.4 | |
wget https://cdn.localwp.com/releases-stable/6.4.1+5978/local-6.4.1-linux.deb | |
sudo dpkg -i local-6.4.1-linux.deb | |
LocalWP fixes: | |
sudo setcap 'cap_net_bind_service=+ep' /opt/Local/resources/extraResources/lightning-services/nginx-1.16.0+6/bin/linux/sbin/nginx | |
sudo nano /usr/bin/kdesudo and set to: | |
#!/bin/bash | |
/usr/bin/lxqt-sudo $7 | |
sudo chmod +x /usr/bin/kdesudo | |
Miscellanous fixes: | |
If you want the site domain accessible from Windows, sudo nano /mnt/c/Windows/system32/drivers/etc/hosts and add 127.0.0.1 SITENAME.local | |
If you want the site to open from LocalWP into Windows Chrome: | |
sudo update-alternatives --install "/bin/host_chrome" "chrome" "/mnt/c/Program Files/Google/Chrome/Application/chrome.exe" 1 | |
and add export BROWSER=host_chrome to ~/.bashrc | |
Now you can pull your site, sit back, and make a cup of coffee. | |
para correrlo: | |
/opt/Local/local | |
sudo apt update | |
sudo apt install nodejs npm | |
npm install --global yarn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment