forked from InstaPy/InstaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_ubuntu.sh
More file actions
72 lines (63 loc) 路 1.67 KB
/
Copy pathinstall_ubuntu.sh
File metadata and controls
72 lines (63 loc) 路 1.67 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
#!/bin/bash
# InstaPy Ubuntu/Debian Installation Script
# This script installs all necessary dependencies for InstaPy on Ubuntu/Debian
echo "Installing InstaPy dependencies for Ubuntu/Debian..."
# Update package list
sudo apt update
# Install system dependencies
echo "Installing system dependencies..."
sudo apt install -y \
python3 \
python3-pip \
python3-venv \
firefox \
xvfb \
libx11-xcb1 \
libxcb1 \
libxrandr2 \
libasound2 \
libpangocairo-1.0-0 \
libatk1.0-0 \
libcairo-gobject2 \
libgtk-3-0 \
libgdk-pixbuf2.0-0 \
libdbus-1-3 \
libdrm2 \
libxss1 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libasound2 \
libpulse0 \
libatspi2.0-0 \
libcups2 \
wget \
tar \
curl
# Install geckodriver
echo "Installing geckodriver..."
GECKO_VERSION="v0.33.0"
wget -q "https://github.com/mozilla/geckodriver/releases/download/${GECKO_VERSION}/geckodriver-${GECKO_VERSION}-linux64.tar.gz"
tar -xzf "geckodriver-${GECKO_VERSION}-linux64.tar.gz"
sudo mv geckodriver /usr/local/bin/
chmod +x /usr/local/bin/geckodriver
rm "geckodriver-${GECKO_VERSION}-linux64.tar.gz"
# Create virtual environment
echo "Creating Python virtual environment..."
python3 -m venv instapy_env
source instapy_env/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install Python dependencies
echo "Installing Python dependencies..."
pip install -r requirements.txt
echo "Installation completed!"
echo ""
echo "To activate the virtual environment, run:"
echo "source instapy_env/bin/activate"
echo ""
echo "To run InstaPy, activate the environment and run:"
echo "python quickstart.py"