From a212f439083d7aa134d924337f0e1218c6db300e Mon Sep 17 00:00:00 2001 From: Przemyslaw Pajak Date: Tue, 3 Dec 2024 17:22:50 +0100 Subject: [PATCH] add ollama --- devenv.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/devenv.sh b/devenv.sh index 04744da..efe373b 100755 --- a/devenv.sh +++ b/devenv.sh @@ -3,7 +3,7 @@ echo "DEVENV.sh - A glamorous shell scripts to install development tools, libraries,.. on Arch, Fedora, Ubuntu and MacOSX " echo "Programming languages: python, elixir, erlang, ruby, rust, go, lua, r-lang, javascript, typescript, haskell, perl, java, julia, cpp, bash, php" echo "Databases: PostgreSQL, MongoDB, SQLite" -echo "Tools: disk, ngrok, terminal" +echo "Tools: disk, ngrok, terminal, ollama" platform='unknown' unamestr=$(uname) @@ -136,6 +136,10 @@ if [ "$platform" = "linux" ]; then yay -S ngrok fi + if [[ "$tools" = *"ollama"* || "$tools" = "all" ]]; then + curl -fsSL https://ollama.com/install.sh | sh + fi + elif [ "$distro" = "Ubuntu" ]; then sudo apt-get update sudo apt-get upgrade @@ -215,6 +219,10 @@ if [ "$platform" = "linux" ]; then sudo apt-get install espeak-ng cava fi + if [[ "$tools" = *"ollama"* || "$tools" = "all" ]]; then + curl -fsSL https://ollama.com/install.sh | sh + fi + elif [ "$distro" = "Fedora Linux" ]; then # chown -R $USER /usr/local/lib sudo yum update @@ -296,6 +304,10 @@ if [ "$platform" = "linux" ]; then sudo yum install qemu-kvm bridge-utils libvirt virt-install fi + if [[ "$tools" = *"ollama"* || "$tools" = "all" ]]; then + curl -fsSL https://ollama.com/install.sh | sh + fi + fi elif [ "$platform" = "darwin" ]; then echo "Determined platform: $platform" @@ -395,6 +407,10 @@ elif [ "$platform" = "darwin" ]; then brew install pass isync msmtp abook urlview neomutt fi + if [[ "$tools" = *"ollama"* || "$tools" = "all" ]]; then + echo "Please download it from https://ollama.com/download/mac" + fi + export LIBTOOL='which glibtool' export LIBTOOLIZE='which glibtoolize' ln -s 'which glibtoolize' /usr/local/bin/libtoolize