Friday, 15 March 2013

linux - How to make a ubuntu executable and run it in my install file -



linux - How to make a ubuntu executable and run it in my install file -

this install file below (sandhi-install.sh). after installing can run terminal. want create terminal independent. making ubuntu executable explains how create executable should set code. think should in install file because want icon appear on desktop after installation completes. have no prior experience in shell scripting , bash sorry if miss of import information. please inquire if need other file. aim run sandhi independent of terminal.

#!/bin/bash echo "installing required dependencies" sudo apt-get -y install git-core autoconf automake create libtool g++ python-dev swig \ pkg-config libboost1.48-all-dev libfftw3-dev libcppunit-dev libgsl0-dev \ libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy \ python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \ libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev \ python-serial python-matplotlib echo "sciscipy installation starting" git clone https://github.com/manojgudi/sciscipy-1.0.0.git cd sciscipy-1.0.0/ sudo ./install echo "starting sandhi installation" cd ../ git clone http://github.com/manojgudi/sandhi.git cd sandhi/ git submodule init git submodule update git pull origin master git submodule update mkdir build cd build/ cmake ../ create -j 2 sudo create install sudo ldconfig echo "sandhi installation complete. go command line , type sandhi start sandhi"

your script has right ingredients beingness *nix executable - shebang line , @ to the lowest degree looks valid code interpreter (/bin/bash). need give relevant user and/or grouping (or everybody) execute access on file. example, if you're owner of file:

sandhi@host$ ls -l sandhi.sh -rw-r--r-- 1 purak users 3.5k oct 11 16:55 sandhi.sh sandhi@host$ chmod u+x sandhi.sh

now can execute it:

sandhi@host$ ls -l sandhi.sh -rwxr--r-- 1 purak users 3.5k oct 11 16:55 sandhi.sh sandhi@host$ ./sandhi.sh

for rest of question it's unclear you're asking. accepted reply making ubuntu executable says if executable foo.bin in /usr/local/bin (a sensible destination custom executables) line in desktop entry should exec=/usr/local/bin/foo.bin.

linux git bash ubuntu-12.04 executable

No comments:

Post a Comment