File size: 630 Bytes
6fa6086
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Install system deps for Chromium
apt-get update && apt-get install -y --no-install-recommends \
    xvfb libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
    libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
    libgbm1 libpango-1.0-0 libcairo2 libasound2 libx11-xcb1 \
    fonts-liberation 2>/dev/null || true

# Install Playwright browsers
playwright install chromium 2>/dev/null || python -m playwright install chromium
playwright install-deps chromium 2>/dev/null || true

# Start Xvfb
Xvfb :99 -screen 0 1280x720x24 -nolisten tcp &
export DISPLAY=:99
sleep 1
echo "[✓] Setup complete"