shoom013 commited on
Commit
884286b
·
verified ·
1 Parent(s): d0b3017

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +6 -6
start.sh CHANGED
@@ -6,23 +6,23 @@ jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
6
 
7
  # Start Xvfb
8
  echo "Starting Xvfb..."
9
- Xvfb :99 -screen 0 1024x768x16 &
10
  export DISPLAY=:99
11
  # xhost +
12
 
13
  # Start Icecast silently
14
  echo "Starting Icecast..."
15
- icecast2 -c /app/icecast.xml -b > /dev/null 2>&1 &
16
  # Wait for icecast
17
  sleep 2
18
 
19
  # Start JACK with dummy backend
20
  echo "Starting JACK..."
21
  # -r 44100 often works better across devices; dummy backend suitable for docker
22
- jackd -r -d dummy -r 44100 &
23
  sleep 2
24
 
25
- sclang setup.sc
26
 
27
  # Start FFmpeg to stream from JACK to Icecast
28
  # We need to find the JACK ports. Usually SuperCollider outputs to 'SuperCollider:out_1' and 'SuperCollider:out_2'
@@ -44,12 +44,12 @@ sclang setup.sc
44
  sleep 1
45
  done
46
  echo "SuperCollider found. Starting FFmpeg streamer..."
47
- ffmpeg -f jack -ac 2 -i SuperCollider -acodec libmp3lame -ab 128k -f mp3 icecast://source:hackme@localhost:8000/stream
48
  ) &
49
 
50
  # Start Nginx
51
  echo "Starting Nginx..."
52
- nginx -c /app/nginx.conf &
53
 
54
  # Start Jupyter Lab on 8888 (internal)
55
  echo "Starting Jupyter Lab..."
 
6
 
7
  # Start Xvfb
8
  echo "Starting Xvfb..."
9
+ sudo Xvfb :99 -screen 0 1024x768x16 &
10
  export DISPLAY=:99
11
  # xhost +
12
 
13
  # Start Icecast silently
14
  echo "Starting Icecast..."
15
+ sudo icecast2 -c /app/icecast.xml -b > /dev/null 2>&1 &
16
  # Wait for icecast
17
  sleep 2
18
 
19
  # Start JACK with dummy backend
20
  echo "Starting JACK..."
21
  # -r 44100 often works better across devices; dummy backend suitable for docker
22
+ sudo jackd -r -d dummy -r 44100 &
23
  sleep 2
24
 
25
+ sudo sclang setup.sc
26
 
27
  # Start FFmpeg to stream from JACK to Icecast
28
  # We need to find the JACK ports. Usually SuperCollider outputs to 'SuperCollider:out_1' and 'SuperCollider:out_2'
 
44
  sleep 1
45
  done
46
  echo "SuperCollider found. Starting FFmpeg streamer..."
47
+ sudo ffmpeg -f jack -ac 2 -i SuperCollider -acodec libmp3lame -ab 128k -f mp3 icecast://source:hackme@localhost:8000/stream
48
  ) &
49
 
50
  # Start Nginx
51
  echo "Starting Nginx..."
52
+ sudo nginx -c /app/nginx.conf &
53
 
54
  # Start Jupyter Lab on 8888 (internal)
55
  echo "Starting Jupyter Lab..."