I am a linux. Newbie tech oldie. I am using Lubuntu 14.04.
When i select preferences - default programs for LXSession, and click on the autostart, I am able to add manually nm-applet and get it to start at boot.
I also would like to run a bash script at boot. I have tried adding just the script file with its full path. I have also tried /bin/bash with the full path and script. Neither of these works.
April 29. I tried moving the script to /usr/local/bin which is in the path for root and me. Then I put only the scriptname in the autostart entry. That did not work...
How do I run a bash script at login?
How do I run a bash script at login?
Linux noobie -Tech Oldie - Migrating from Years w XP + Classic Desktop to Lubuntu 14.04
Re: How do I run a bash script at login?
is your script marked executable?
does it do what it should when you execute it manually?
does it do what it should when you execute it manually?
Re: How do I run a bash script at login?
Yes and yesdrooly wrote:is your script marked executable?
does it do what it should when you execute it manually?
Linux noobie -Tech Oldie - Migrating from Years w XP + Classic Desktop to Lubuntu 14.04
Re: How do I run a bash script at login?
there's a new gui i am not familiar with yet.
and trying to play with it, i find it sucks.
so, remove anything you managed to add there.
remove your script from /usr/local/bin.
try adding the script with its full path (somewhere in your $HOME, please) to $HOME/.config/lxsession/Lubuntu/autostart.
and trying to play with it, i find it sucks.
so, remove anything you managed to add there.
remove your script from /usr/local/bin.
try adding the script with its full path (somewhere in your $HOME, please) to $HOME/.config/lxsession/Lubuntu/autostart.