-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·34 lines (25 loc) · 974 Bytes
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#fedora
sudo dnf install vlc-plugin-gstreamer vlc-plugin-ffmpeg
sudo dnf install ffmpeg
sudo dnf install gstreamer1 gstreamer1-plugins-bad-free gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-ugly
#python
pip install python-dotenv opencv-python websockets
#nodejs
npm install ws node-rtsp-stream express cors
npm install dotenv ws node-rtsp-stream express cors
npm install winston
sudo apt-get update
sudo apt-get install ffmpeg
npm install node-rtsp-stream winston
# Podstawowe narzędzia developerskie
sudo dnf groupinstall "Development Tools"
# FFmpeg i wymagane biblioteki
sudo dnf install ffmpeg ffmpeg-devel
# Node.js zależności do kompilacji canvas
sudo dnf install cairo-devel pango-devel libjpeg-turbo-devel giflib-devel
# Dodatkowe zależności dla canvas
sudo dnf install libpng-devel jpeg-devel pango-devel cairo-devel giflib-devel
npm install canvas --build-from-source
chmod -R 755 media/
chmod -R 755 received_frames/