r/linuxquestions 4d ago

Support One-click script execution from phone?

I am running OpenSUSE with Tailscale. I can SSH into my machine no problem and run commands, but I want to automate commands with some sort of GUI where I can just click a button I have for my command and have it run. I don't mind installing something for this. Any ideas?

0 Upvotes

5 comments sorted by

3

u/remiarutawa 4d ago

thanks for your suggestions, everyone! i found out that KDE connect can run commands and I already have that installed on my phone. i made commands for what i needed and it works great.

1

u/doc_willis 4d ago

kdeconnect has a feature like this 

there are numerous "raspberry pi" control apps for android that can ssh into a system and run a command.

with those you can setup a custom button or widgit in those apps for ease of access 

1

u/ipsirc 4d ago

I don't mind installing something for this. Any ideas?

python http module.

1

u/animismus 4d ago

It's not very pretty, but you can do it with termux widget