forked from stephanelsmith/micro-aprs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
33 lines (24 loc) · 924 Bytes
/
Copy pathsetup.sh
File metadata and controls
33 lines (24 loc) · 924 Bytes
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
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status
# 2. Install GNU Radio
echo "Updating package lists..."
sudo apt-get update
echo "Installing GNU Radio..."
sudo apt-get install -y gnuradio
echo "Verifying GNU Radio installation..."
gnuradio-config-info --version
# 3. Install Osmocom's osmosdr
echo "Installing Osmocom's osmosdr..."
sudo apt-get install -y libosmosdr-dev gr-osmosdr
# 4. Set Up a Python Virtual Environment
echo "Creating a Python virtual environment..."
python3 -m venv .venv --system-site-packages
# 5. Activate the Virtual Environment
echo "Activating the virtual environment..."
source .venv/bin/activate
# 6. Install Python Dependencies
echo "Installing Python dependencies..."
pip install --upgrade pip
pip install ttkbootstrap numpy
echo "Setup completed successfully!"
echo "To activate the virtual environment in the future, run: source .venv/bin/activate"