- Must use the primary penguin Linux container "penguin"
echo $USER
# or
whoami
# or
users
First, install the required packages:
sudo apt update && sudo apt install -y wget dpkg libaio1 libncurses5 libnss3-tools policykit-1 policykit-1-gnome libcap2-bin
Then fix Polkit authentication by replacing YOUR_USERNAME
with your actual username from step 1:
sudo tee /etc/polkit-1/rules.d/99-localwp-allow.rules > /dev/null << EOF
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.policykit.exec" && subject.user == "YOUR_USERNAME") {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop") == 0 && subject.user == "YOUR_USERNAME") {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (subject.user == "YOUR_USERNAME" && subject.local) {
return polkit.Result.YES;
}
});
EOF
sudo pkill -HUP polkitd
After killing polkitd, you can test if the polkit configuration is working without requiring a password:
# Test if polkit allows actions without password prompts
pkexec echo "Polkit configuration is working correctly"
If configured correctly, this should display the message without prompting for a password.
Either restart your Chromebook or right-click the Linux icon in the shelf and choose "Shutdown Linux".
Download and install LocalWP after the restart:
# Step 1: Download LocalWP
wget -O local-linux.deb "https://cdn.localwp.com/stable/latest/deb"
# Step 2: Install LocalWP
sudo dpkg -i local-linux.deb
In LocalWP Preferences, set Router Mode to "localhost".
Your LocalWP sites will now be accessible from Chrome OS browser via http://localhost:PORT/
To update LocalWP to the latest version:
wget -O local-linux.deb "https://cdn.localwp.com/stable/latest/deb"
sudo dpkg -i local-linux.deb
rm local-linux.deb
The update process will preserve your existing sites and settings. No additional configuration is required after updating.