diff --git a/deployment_scripts/linux/prepare-free.sh b/deployment_scripts/linux/prepare-free.sh new file mode 100644 index 0000000..0d908bb --- /dev/null +++ b/deployment_scripts/linux/prepare-free.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +chmod +x root.sh +pkexec ./root.sh +npm install +npm run build + +cd py +python -m venv venv +source venv/bin/activate +python3 -m pip install -r requirements.txt + +ollama pull qwen2-math:1.5b +ollama pull starcoder2 +ollama pull llama3.2 + +ollama pull wizard-math +ollama pull starcoder2:7b +ollama pull llama3.1 + +chmod +x run.sh \ No newline at end of file diff --git a/deployment_scripts/linux/prepare-nonfree.sh b/deployment_scripts/linux/prepare-nonfree.sh new file mode 100644 index 0000000..8969baa --- /dev/null +++ b/deployment_scripts/linux/prepare-nonfree.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +chmod +x root.sh +pkexec ./root.sh +npm install +npm run build + +cd py +python -m venv venv +source venv/bin/activate +python3 -m pip install -r requirements.txt + +ollama pull qwen2-math:1.5b +ollama pull qwen2.5-coder:1.5b +ollama pull phi3.5 + +ollama pull mathstral +ollama pull qwen2.5-coder +ollama pull qwen2.5 + +chmod +x run.sh \ No newline at end of file diff --git a/deployment_scripts/linux/root.sh b/deployment_scripts/linux/root.sh new file mode 100644 index 0000000..8b8cfeb --- /dev/null +++ b/deployment_scripts/linux/root.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +apt install npm nodejs python3-pip +curl -fsSL https://ollama.com/install.sh | sh +systemctl enable ollama --now \ No newline at end of file diff --git a/deployment_scripts/linux/run.sh b/deployment_scripts/linux/run.sh new file mode 100644 index 0000000..e1e490b --- /dev/null +++ b/deployment_scripts/linux/run.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cd py +python api.py & +pid_py=$! + +npm start & +pid_node=$! + +npx electron . + +kill $pid_py +kill $pid_node \ No newline at end of file