only able to get shell script to run from a terminal - Printable Version +- Damn Small Linux Forums (https://damnsmalllinux.org/forums) +-- Forum: Damn Small Linux Forum (https://damnsmalllinux.org/forums/forum-1.html) +--- Forum: Help Section (https://damnsmalllinux.org/forums/forum-4.html) +--- Thread: only able to get shell script to run from a terminal (/thread-191.html) |
only able to get shell script to run from a terminal - chloesnow - 11-23-2024 just what it says, I have a laptop im fixing up for my inlaw to vnc into a virtual machine on my beefier desktop. She's not computer savvy at all. SO i want to either place a file on the desktop that says CLICK_ME _TO_CONNECT.sh or vnc_connect.sh and just click it to connect or have it auto run on start. I've tried linking it with the gui, i tried a .desktop file, i tried crontab, I tried ~/.fluxbox/startup to no avail. I'm happy to provide my scripts and stuff, just ask. It seems to not be working like a standardized linux distro...which makes sense because it's so lightweight. Or i may be missing something, i'm pretty rusty on my linux. I used to be a damn solaris and linux wizard but then i became an audio engineer. Analog audio gear is fun. RE: only able to get shell script to run from a terminal - grindstone - 11-23-2024 Unclear of particulars, but seems lots of options. This would lean toward dropping the line inside .xinitrc right before the exec fluxbox if I'm reading right. Another way might be to indeed drop your .desktop file into /etc/xdg/autostart and then remove the 5 entries that are already there but also enable the autostart (LOAD_XDG_AUTOSTART="true") in ./..desktop-session/desktop-session.conf If, OTOH, what you really want is a service, you'd need to make one. Yeah, DSL uses runit instead of sysV or berkeley or whatever else. The runit FAQ is here, too. Maybe none of that is any help. If you get it going the way you want it, it'd be great if you could leave a breadcrumb trail. |