Skip to content

πŸŽ₯ Make videos programmatically with React

linux dependencies page

Jonny Burger365e2b6ce9f7
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index eb40e2fd5a..256923d7d9 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -16,7 +16,10 @@ To use Remotion, you need at least [Node](https://nodejs.org/en/download/) <MinN
## Scaffolding a new project
-You can initialize a new Remotion video using
+:::note
+🐧 [Linux distros need at least version 2.34 of Libc.](https://github.com/remotion-dev/remotion/issues/2439)
+They also need to [install some additional packages](/docs/miscellaneous/linux-dependencies).
+:::
<Tabs
defaultValue="npm"
@@ -29,14 +32,14 @@ values={[
}>
<TabItem value="npm">
-```bash
+```bash title="Use npm as the package manager"
npx create-video@latest
```
</TabItem>
<TabItem value="pnpm">
-```bash
+```bash title="Use pnpm as the package manager"
pnpm create video
```
@@ -44,7 +47,7 @@ pnpm create video
<TabItem value="yarn">
-```bash
+```bash title="Use Yarn as the package manager"
yarn create video
```
@@ -52,7 +55,7 @@ yarn create video
<TabItem value="bun">
-```bash
+```bash title="Use Bun as the package manager and runtime"
bun create video
```
@@ -63,7 +66,8 @@ Bun as a runtime is mostly supported. [Read more here](/docs/bun).
</TabItem>
</Tabs>
-Choose the template that is most suitable for you. For your first project, we recommend the [Hello World](/templates/hello-world) template.
+Choose the template that is most suitable for you.
+For your first project, we recommend the [Hello World](/templates/hello-world) template.
After the project has been scaffolded, we recommend to open the project in your text editor and starting the [Remotion Studio](/docs/studio):
@@ -71,48 +75,8 @@ After the project has been scaffolded, we recommend to open the project in your
npm start
```
-<details>
-
-<summary>
-Additional information for Linux users
-
-</summary>
-Linux users need to install some additional packages to get Chrome/Puppeteer working correctly.
-<Tabs
-defaultValue="arch"
-values={[
-{ label: 'Arch Linux', value: 'arch', },
-{ label: 'Ubuntu and Debian', value: 'ubuntu', },
-]
-}>
-
- <TabItem value="arch">
-
-```bash
-pacman -S dconf alsa-lib atk glibc cairo libcups dbus expat fontconfig gcc gdk-pixbuf2 glib2 gtk3 nspr pango gcc-libs libx11 libxcomposite libxcursor libxdamage libxext libxfixes libxi libxrandr libxrender libxss libxtst ca-certificates ttf-liberation libappindicator-gtk3 nss lsb-release xdg-utils wget mesa
-```
-
- </TabItem>
-<TabItem value="ubuntu">
-
-```bash
-apt install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release xdg-utils wget libgbm-dev
-```
-
-:::note
-Watch out for `apt` wanting to uninstall critical packages (e.g the Desktop) in order to install the Remotion dependencies. Abort the installation and seek help [in our Discord](https://remotion.dev/discord) if that happens!
-:::
-
- </TabItem>
-
-</Tabs>
-
-Linux distros that use libc need at least version 2.31 of it. [Check here](https://github.com/remotion-dev/remotion/issues/2439) if your distro has it.
-
Got instructions for more Linux distributions? [Add them to this page](https://github.com/remotion-dev/remotion/edit/main/packages/docs/docs/getting-started.md)!
-</details>
-
## Installation in existing projects
Want to install Remotion in an existing project? Go here instead: [Installation in existing projects](/docs/brownfield)
diff --git a/packages/docs/docs/miscellaneous/linux-dependencies.mdx b/packages/docs/docs/miscellaneous/linux-dependencies.mdx
index 64cd8d66d5..16721224e4 100644
--- a/packages/docs/docs/miscellaneous/linux-dependencies.mdx
+++ b/packages/docs/docs/miscellaneous/linux-dependencies.mdx
@@ -4,7 +4,7 @@ title: Linux Dependencies
crumb: "FAQ"
---
-If you are on Linux, Chrome requires some shared libraries to be installed.
+If you are on Linux, Chrome Headless Shell requires some shared libraries to be installed.
## Ubuntu
diff --git a/packages/docs/docs/troubleshooting/browser-launch.mdx b/packages/docs/docs/troubleshooting/browser-launch.mdx
index 16a01f3e0e..5148b7cca3 100644
--- a/packages/docs/docs/troubleshooting/browser-launch.mdx
+++ b/packages/docs/docs/troubleshooting/browser-launch.mdx
@@ -16,7 +16,7 @@ it means the browser was not able to start. The most common reasons are
## Missing shared libraries
-Visit the [installation docs](/docs/) and make sure you installed the libraries outlined in "Additional information for Linux users".
+Install the [missing shared libraries for your OS](/docs/miscellaneous/linux-dependencies).
## Wrong OS or architecture
diff --git a/packages/renderer/src/browser/BrowserRunner.ts b/packages/renderer/src/browser/BrowserRunner.ts
index 76acde61bc..1160a8ae93 100644
--- a/packages/renderer/src/browser/BrowserRunner.ts
+++ b/packages/renderer/src/browser/BrowserRunner.ts
@@ -258,7 +258,7 @@ function waitForWSEndpoint(
return new Promise((resolve, reject) => {
browserStderr.addListener('data', onData);
- browserProcess.addListener('close', onClose);
+ browserStderr.addListener('close', onClose);
const listeners = [
() => browserStderr.removeListener('data', onData),
() => browserStderr.removeListener('close', onClose),