Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ultimate-addons-for-gutenberg domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /sites/danielkossmann.com/files/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hustle domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /sites/danielkossmann.com/files/wp-includes/functions.php on line 6114
How to install WordPress Studio in Ubuntu Linux - Daniel Kossmann

When Studio launched I was very excited to have an easy to use WordPress local development environment powered by WordPress Playground. Unfortunately Linux support is not official yet, but Antony Agrios added a comment with detailed instructions in the launch post. To make it more accessible to others that want to try Studio in Ubuntu Linux, here are the steps with some minor changes from me.

1. Clone the repository

git clone https://github.com/Automattic/studio.git wordpress-studio
Bash

2. Install dependencies

Requirement: have Node Version Manager (nvm) installed.

# Open repository folder
cd wordpress-studio

# Make sure you have the needed nvm version
nvm install

# Install dependencies
nvm use && npm install

# Fix vulnerabilities found
npm audit fix
Bash

3. Create application files

# Create packages
npm run package

# Make it executable
chmod +x out/Studio-linux-x64/studio
Bash

4. Run

./out/Studio-linux-x64/studio
Bash

5. Optional: create launcher

This is a nice step to make it easier to launch. This is how it will look like:

Ubuntu launcher for WordPress Studio with personalized icon

To do this, create a new file for the launcher:

gnome-text-editor ~/.local/share/applications/studio.desktop
Bash

Paste the following content inside the file changing the two ABSOLUTE-PATH entries with the absolute path where you clone the repository in the first step.

[Desktop Entry]
Name=Studio By WordPress.com dev
Comment=Studio By WordPress.com dev
Exec=/ABSOLUTE-PATH/wordpress-studio/out/Studio-linux-x64/studio %U
Icon=/ABSOLUTE-PATH/wordpress-studio/assets/studio-app-icon.png
Type=Application
Terminal=false
MimeType=x-scheme-handler/wpcom-local-dev;
Categories=Development;
Bash

That’s it, have fun!



Comments

Leave a Reply

Your email address will not be published. Required fields are marked *