Skip to content

Instantly share code, notes, and snippets.

@kittaakos
Last active August 31, 2020 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kittaakos/1c015c8d1ec29b486a3c636ab7640af8 to your computer and use it in GitHub Desktop.
Save kittaakos/1c015c8d1ec29b486a3c636ab7640af8 to your computer and use it in GitHub Desktop.
[Ubuntu 18.04.4] Build Theia
#!/bin/bash -i
sudo apt update \
&& sudo apt install --no-install-recommends --yes \
git \
curl \
make \
gcc \
pkg-config \
build-essential \
libx11-dev \
libxkbfile-dev \
&& wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash \
&& source ~/.bashrc \
&& nvm install 12.14.1 \
&& nvm use 12.14.1 \
&& nvm alias default 12.14.1 \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
&& sudo apt update && sudo apt install --no-install-recommends yarn \
&& rm -rf ~/dev/git/theia \
&& mkdir -p ~/dev/git/ \
&& git clone --depth 1 https://github.com/eclipse-theia/theia.git ~/dev/git/theia \
&& yarn --cwd ~/dev/git/theia \
&& yarn --cwd ~/dev/git/theia rebuild:electron \
&& yarn --cwd ~/dev/git/theia/examples/electron start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment