PDA

View Full Version : [ubuntu] shell script



hari7673
December 30th, 2012, 07:19 AM
Can anyone please tell me how to execute a shell script at the start up of desktop.
I mean what commands are to be included in the shell script so as to get it executed without the user interference.
thanks in advance

hari7673
December 30th, 2012, 07:26 AM
the shell script i am trying to execute contains a link to a media playlist

cariboo
December 30th, 2012, 07:57 AM
You didn't tell us what version you are using, so I'll assume you are using Ubuntu 12.04 or 12.10. Open a terminal and type the following commands:


cd /etc/xdg/autostart/
sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop

then in the same terminal type:


gnome-session-properties

you can then add your script to the start-up applications menu.

hari7673
December 30th, 2012, 05:27 PM
Thank you sir i got hold of that script and executing well.
can you suggest me a online learning page for such script programming.

Kirk Schnable
December 30th, 2012, 08:53 PM
Thank you sir i got hold of that script and executing well.
can you suggest me a online learning page for such script programming.

I really like the Unix Toolbox. It has a lot of command examples, not the most detailed explanations as its intended as a pocket reference, but you could peruse it, and ask Google or the Ubuntu Forums any specific questions you have about new commands you're learning.

http://cb.vu/unixtoolbox.xhtml

Obviously you'd want to be looking at Linux commands. (not the FreeBSD ones, etc)