OpenSuse, Linux, Tutorials, Tech, General - - Posted on March, 24 at 11:03 am
Whatever i type here, i assume that you have changed to that directory (if necessary) using “cd {path}” (w/o dowble quotes and brackets) command and u should always be logged in as root using “su -” (w/o double quotes) command.
There might be other ways to execute these files, but i have used these and found these only when i searched for the same over the net.
Also always read the README file, if provided with the package.
1) .sh (Script) files
Simply click on them to execute them, works sometimes.
or
Open Terminal
type ./scriptname.sh
or
Open Terminal
chmod -x scriptname.sh
sh ./scriptname.sh
2) .py (python) Files
Open Terminal
type python filename.py
3)Java Files
Open Terminal
type ./filename
4)tar.gz Files (Archives)
Simply extract them with an Extractor by clicking on them (as in windows)
or
Open Terminal
type tar xvzf file.tgzNote: To extract to some other folder, change over to that folder and then type
tar xvzf {path}.tgz
path of the file w/o brackets
5) Making an Install File from the package u downloaded
Extract the contents
Open Terminal
Type: ./configure
then: make
then: make install
6) .rpm Files
Right Click on them, and then selct Install with Yast
Note: Choosing Install Software never worked for me..
That should be enough!!
powered by performancing firefox
April 6th, 2007 at 2:02 am
I don’t like the way many people call sh to execute the shell script. It is a perfectly valid and often used way it can sometimes cause a problem. Say, if you’ve written a bash script but the default shell(sh is the default shell,/bin/sh links to the default shell, normally bash) in the computer you try to execute it, has zsh as the default shell, chances are the script may behave unexpectedly. That’s been the reason why many apps broke in Ubuntu 6.10, a lot of info on this is there on launchpad.
Also, you can make python files as executable using the command
chmod a+x filename.py (this can be dangerous as you’re making the script executable to everyone)
then the file can be executed by ./filename.py