how to run this command after boots up?

Dear Suse Studio experts,

I am having a lot of fun with the suse studio - like a play ground with lots of toys!

Ok, I would like to add compiled code into the LiveDVD. This code should be located under /usr/local/bin with “chmod rx+ao” so that it can be executed by any user. Also, the help file should be under /usr/local. So, I will tar/gz the compiled code under /usr/local/bin and then, upload the tgz to suse studio - specify it is under /usr/local/bin. Will do the same for the help file. But, the code requires that firefox to be under /usr/local/bin too, so, after boot into the user account, I would like to execute this command automatically,

“sudo ln -s /usr/bin/firefox /usr/local/bin/firefox”

How to run a command like this automatically? It will requires root password too, how to go around this?

Thanks!

phsieh2005

Hi
Don’t use /usr/local/bin. Get onto the Build Service and build as an
rpm with the configure option --prefix=/usr and you should be good to
go. Else compile as above and add so it’s in the correct place for
FHS/openSUSE.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 9 days 3:16, 3 users, load average: 0.06, 0.08, 0.08
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Hi, malcolmlewis,

Thanks for the reply!

Now, I have to learn about the Build Service and how to build a rpm.

phsieh2005

Hi
What are you trying to build? There is no reason why you can’t make the
rpm on a local machine and just upload the rpm either.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 9 days 5:03, 2 users, load average: 0.16, 0.29, 0.23
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Hi, malcolmlewis,

I downloaded an open source finite element analysis code (in binary form) call CalculiX. The installation instructions are:

  1. copy CalculiX to /usr/local/bin
  2. copy help (html format) to /usr/local and then is expecting firefox in /usr/local/bin (hence, requires the static link).

Because CalculiX is already compiled for linux, is there a need to re-build it in rpm form? I am not sure how to deal with the help file in /usr/local when building rpm either.

phsieh2005

Hi
There are fedora src rpm’s here which can be converted to openSUSE ones?

Which of those files are required, just cgx?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 9 days 16:03, 2 users, load average: 0.00, 0.03, 0.02
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

:slight_smile:

Hi, malcolmlewis,

Thanks! I am not aware of the cgx/ccx rpms. I am only interested in cgx. Are these source codes? Do I need to compile them for OpenSUSE?

By the way, I tried putting cgx under /usr/local/bin and the help file under /usr/local. Then, built the liveDVD and cgx actually runs without any problem. But, maybe this is not the recommended way.

phsieh2005

Hi
Yes, they are the source rpms, but would need modification to build on
openSUSE. I recommend you do this, then can get al the correct
information, locations etc correct. Do you want me to modify and build
a rpm for you, if so what release of openSUSE are you building?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 9 days 23:32, 2 users, load average: 0.01, 0.02, 0.01
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Hi, malcolmlewis,

Thanks for the offer! This is not really an urgent project for me, so I would like to learn how to do this myself just to learn more about OpenSUSE linux.

phsieh2005

Hi
No worries :slight_smile: Download the cgx.spec file and look at that :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 10 days 3:21, 2 users, load average: 2.31, 1.01, 0.49
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15