Damn Small Linux Forums

Full Version: only able to get shell script to run from a terminal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.