8

[ubuntu] run terminal command at startup

view full story
linux-howto

http://ubuntuforums.org – I am a very beginner to ubuntu. I have just installed ubuntu 12.0.4LTS in virtual box and try to run a start up script. But I have try many methods and all have failed.Bellow is my environment, please give any advise. 1st: add JAVA_HOME and GRAILS PATH in user main folder's profile file # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi export JAVA_HOME=/usr/java/jre1.7.0_13 PATH=$PATH:$HOME/work/grails-2.0.3/bin 2nd: because I want to run grails command at startup, so create shell file startD.sh #! /bin/sh (Hardware)