-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup-linux.sh
More file actions
91 lines (81 loc) · 1.97 KB
/
Copy pathsetup-linux.sh
File metadata and controls
91 lines (81 loc) · 1.97 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/bash
# LABOKit Linux Setup Script
# Automatically detects distribution and installs dependencies
set -e
echo "🐧 LABOKit Linux Setup"
echo "======================="
# Detect OS
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$ID
VER=$VERSION_ID
else
echo "❌ Cannot detect Linux distribution"
exit 1
fi
echo "Detected: $OS $VER"
echo ""
# Install system dependencies based on distribution
case $OS in
ubuntu|debian)
echo "📦 Installing dependencies for Ubuntu/Debian..."
sudo apt-get update
sudo apt-get install -y \
python3 \
python3-pip \
python3-venv \
build-essential \
libssl-dev \
libffi-dev \
libopencv-dev \
nodejs \
npm
;;
fedora)
echo "📦 Installing dependencies for Fedora..."
sudo dnf install -y \
python3 \
python3-devel \
python3-pip \
gcc \
gcc-c++ \
make \
opencv-devel \
nodejs \
npm
;;
arch)
echo "📦 Installing dependencies for Arch Linux..."
sudo pacman -Sy --noconfirm \
python \
python-pip \
base-devel \
opencv \
nodejs \
npm
;;
*)
echo "⚠️ Unsupported distribution: $OS"
echo "Please install manually:"
echo " - Python 3.8+"
echo " - Node.js 18+"
echo " - npm or yarn"
exit 1
;;
esac
echo ""
echo "✅ System dependencies installed"
echo ""
# Install npm dependencies
if [ -d "node_modules" ]; then
echo "Updating npm dependencies..."
else
echo "Installing npm dependencies..."
fi
npm install
# Install Python dependencies
echo "Installing Python dependencies..."
pip3 install -r requirements.txt
echo ""
echo "🎉 Setup complete!"
echo "To start development, run: npm run dev:linux"