A very good day to everyone. I am a newbie to OpenSuSE OS and hope you can bear with my ignorance in this regard.
I attempt to install a software using Shell Script and here are the codes that I used:
sudo ./sp_install --cli
A message was immediately triggered as the following:
Source directory…
“/home/user/Downloads/Software”
Installation directory…
“/var/Software”
[Press “Enter” key to continue]
I wish to ask if it is alright to install the software in that directory, as I have seen most of the posts that recommend to install software in /bin or /usr/bin.
Would anyone please advice if there is a way to edit the Shell Script so that the installation directory can be changed to /usr/bin. If the Shell Script is editable, may I know which software should I use to get the job done please?
Thank you very much.
tanggo81 wrote:
> A very good day to everyone. I am a newbie to OpenSuSE OS and hope you
> can bear with my ignorance in this regard.
>
> I attempt to install a software using Shell Script and here are the
> codes that I used:
It would help if you told us what software it is and where you got it.
Please also tell us what version of openSUSE you are using.
> I wish to ask if it is alright to install the software in that
> directory, as I have seen most of the posts that recommend to install
> software in /bin or /usr/bin.
You probably don’t want to install it in that directory, no. And you
don’t want to install it in /bin and perhaps you don’t want to install
it in /usr/bin. You may want to install it somewhere like
/home/your-user-name/bin
But unitl you tell us what it is, we won’t know.
> Would anyone please advice if there is a way to edit the Shell Script so
> that the installation directory can be changed to /usr/bin. If the Shell
> Script is editable, may I know which software should I use to get the
> job done please?
Yes, shell scripts are editable, but if you don’t even know that, you
probably don’t want to do it.
In addition: it would be good if you posted the content on SUSE Paste and post the URL of it here. My first impression is that the script maybe has to be run as root, after a ‘su -’, but as long as we don’t know what’s in the script, that’s just a mere guess.
Also, provide links where we can see the instructions you followed.
Thank you very much for the prompt reply.
> It would help if you told us what software it is and where you got it.Please also tell us what version of openSUSE you are using.
I am trying to install Spartan’10 [a quantum chemical modeling software from Wavefunction (Wavefunction, Inc.)].
I am using opensuse v12.3 at the moment.
> You may want to install it somewhere like /home/your-user-name/bin
I am using a shared system, so I think it is better to install the software as root user.
> Yes, shell scripts are editable, but if you don’t even know that, you probably don’t want to do it.
I do not mind to spend time and learn how to do it. After all, it is part of my learning process. I just do not know where to start and hope to get some guidance through this forum 
Thanks for your advice
tanggo81 wrote:
> Thank you very much for the prompt reply.> It would help if you told us
> what software it is and where you got it.Please also tell us what
> version of openSUSE you are using.I am trying to install Spartan’10 [a
> quantum chemical modeling software from Wavefunction (‘Wavefunction,
> Inc.’ (http://www.wavefun.com/))].I am using opensuse v12.3 at the
> moment.> You may want to install it somewhere like
> /home/your-user-name/binI am using a shared system, so I think it is
> better to install the software as root user.> Yes, shell scripts are
> editable, but if you don’t even know that, you probably don’t want to do
> it.I do not mind to spend time and learn how to do it. After all, it is
> part of my learning process. I just do not know where to start and hope
> to get some guidance through this forum :)Thanks for your advice
It’s pretty difficult to read your reply, but here goes:
OK. It seems like Wavefunction are pretty poor when it comes to Linux.
For example, when I go look at the Linux FAQ
http://www.wavefun.com/support/sp_linux/support_linuxFAQ.html it says:
Internet Explorer Users: To view this file, you must allow “active
content” to run in your web browser.
and not much else 
The install instructions at
http://downloads.wavefun.com/linux/InstallSpartan10v1.1.pdf say “The
installer will prompt for the directory where Spartan is to be installed.”
So did it ask or not?
If it did, then I suggest using /opt/wavefront or /opt/spartan as the
install directory so it is completely separate from everything else.
Until you’ve used it for a while and know that you can trust it to
behave well with everything else.
If it didn’t, I suggest you ask Wavefront.
The best way to learn is not by hacking away at something you have no
understanding of that may mess up your system. Start by reading a book
or two so you understand the basic concepts.
Have a look at this table of the Linux directory tree. Unlike Windows, Linux apps aren’t contained in a single directory, with an occasional exception. /bin and /usr/bin are for executables. Config and shared files are dispersed elsewhere. For those exceptions, use the /opt directory djh-novell has suggested.
On 2013-10-02 16:46, tanggo81 wrote:
>
> Thank you very much for the prompt reply.> It would help if you told us
> what software it is and where you got it.Please also tell us what
> version of openSUSE you are using.I am trying to install Spartan’10 [a
> quantum chemical modeling software from Wavefunction (‘Wavefunction,
> Inc.’ (http://www.wavefun.com/))].I am using opensuse v12.3 at the
> moment.> You may want to install it somewhere like
> /home/your-user-name/binI am using a shared system, so I think it is
> better to install the software as root user.
You should install it under /usr/local/
/var is dedicated to data, not software.
Yes, your post got here with a difficult to read format.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
Thanks everyone for the valuable comments and suggestions. I’d like to apologize for the unintended poor reading post 
Knurpht wrote:
> In addition: it would be good if you posted the content on SUSE Paste and post the URL of it here.
> My first impression is that the script maybe has to be run as root, after a ‘su -’, but as long as we don’t know what’s in the script, that’s just a mere guess.
> Also, provide links where we can see the instructions you followed.
Knurpht is right. The script was created to be run as root (please refer to this link: SUSE Paste).
The installation instruction can be found in the link as provided by djh-novell
djh-novell wrote:
> The install instructions at http://downloads.wavefun.com/linux/I...rtan10v1.1.pdf say “The
> installer will prompt for the directory where Spartan is to be installed.”
> So did it ask or not?
> …
> If it didn’t, I suggest you ask Wavefront.
> …
> The best way to learn is not by hacking away at something you have no
> understanding of that may mess up your system
There is no option available as to choose where to install the software (please refer the link: SUSE Paste). Guess I have to no choice but to ask Wavefun.
I’ll read up more on this topic (thanks buddy ;)).
chief_sealth wrote:
> Have a look at this table of the Linux directory tree.
Thanks for the useful link, it is a very useful piece of info