[ubuntu] Would like to make a bash script for auto start the progamme

view story

http://ubuntuforums.org – I have Ubuntu 12.04lts there is folder in my home called FlexHub in which there is a file which first loads lua and then the file ( ./lua ./FlexHub.lua ) I always have to cd FlexHub then give command ./lua /FlexHub in terminal rather i would like to switch to tty1 and login and the script auto loads the flexhub this is used for non gui ./lua ./FlexHub.lua --nogui I am new be in linux i have no knowledge of bash thoug i tried to find out from google but i could make it.Can some one help me out in this ? If possible plz give step by step that would be good :) so i wont make mistake and then (Hardware)