Running large language models like GPT-OSS locally with Ollama gives you cutting-edge AI right on your Linux machine. But if you’re tired of typing out the same commands each session, why not simplify things with a one-click launcher? In this guide, you’ll learn how to create both a shell script and a graphical Desktop shortcut so you can launch your Ollama model instantly—no terminal typing required.
Why Use a Launcher?
-
Speed: Open your favorite AI in seconds, not minutes.
-
Convenience: Great for non-technical users or anyone who wants to skip memorizing commands.
-
Efficiency: Reduce repetitive actions and streamline your workflow.
Step 1: The Simple Shell Script
A shell script is the easiest way to automate starting Ollama with GPT-OSS.
-
Open your terminal and create a new file:
bashnano launch-gpt-oss.sh -
Add the following lines:
bash#!/bin/bash ollama run gpt-oss:20bChange
gpt-oss:20bto any model you prefer. -
Save and exit (press
Ctrl+X, thenY, thenEnter). -
Make it executable:
bashchmod +x launch-gpt-oss.sh -
Now, to run it, simply type:
bash./launch-gpt-oss.shOr, double-click in your file manager if your Linux desktop allows executable scripts.
Step 2: Create a Desktop Shortcut
Take it further by creating a clickable icon on your desktop:
-
Create the Desktop file:
bashnano ~/Desktop/ollama-gpt-oss.desktop -
Paste this:
text[Desktop Entry] Type=Application Name=Ollama GPT-OSS Comment=Launch Ollama with GPT-OSS Exec=gnome-terminal -- bash -c "ollama run gpt-oss:20b; read" Icon=utilities-terminal Terminal=true Categories=Development;-
Change
gnome-terminalif you use a different terminal. -
The
readat the end keeps the window open so you can see outputs.
-
-
Make it executable:
bashchmod +x ~/Desktop/ollama-gpt-oss.desktop

Comments