Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

.sh command disabled

Posted on 2003-12-11
10
697 Views
Last Modified: 2012-05-04
I have Mandrake Linux 9.1 and reinstalled it yesterday but when I wanted to install something the .sh command was disbled. When I go to the directory and did a ls the install.sh file showed like this install.sh*. I did some reading on it and found that the command is disabled. Does anybody knows how I can enable it.
0
Comment
Question by:SilverMecer
  • 4
  • 4
  • 2
10 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 250 total points
ID: 9918897
just do
cd <dir where this file is >
chmod +x install.sh
./install.sh
0
 

Author Comment

by:SilverMecer
ID: 9918945
I will let you know tommorow, I don't have the system with me at the moment to test it. Thank you
0
 
LVL 20

Expert Comment

by:Gns
ID: 9919515
By default ls is aliased to "ls -F --color=auto" on modern Mandrake systems.
The -F flag adds an "indicator" to the file, so that
install.sh*
means that it already is "executable" (has the x bit set).
Also by default, your PATH does not contain the "." directory (current directory), so you need explicitly use a path (either an absolute path from root (/( on down, or as shivsa shows, use a relative path (./ is the shortest possible relative path there is:-)). The current directory is left out of the PATH for security reasons, but having it "tagged on" as the last component is fairly OK, so you could do
PATH=${PATH}:.
to be able to just type
install.sh<Enter>

What is the exact error you get, and what is it you are trying to install? Perhaps there is an rpm alternative;-).

-- Glenn
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:SilverMecer
ID: 9919960
I want to install some themes for X Windows. I am also going to install Unreal Tournament 2003 for Linux which also has a install.sh. When I want to run the command the error is "no such command". I can give you a exact answer tommorow. The Linux box is my home PC and I bought Linux just last week and this is my first Linux PC.
0
 
LVL 20

Expert Comment

by:Gns
ID: 9920025
That indicates that you simply do not find the command (since the directory it resides in isn't in the PATH... not even the current directory). Good. Makes it real simple to "fix":-).

Good Luck.

-- Glenn
0
 

Author Comment

by:SilverMecer
ID: 9920385
The directory where the files reside is /home/jaco//Documents/library/linux-themes/Aqua_Beta_2

Must load some files to install the command. As if the files to run the command is not loaded
0
 
LVL 20

Expert Comment

by:Gns
ID: 9920657
Where did you get the Aqua theme? Share an url with us, and perhaps we'll find time to DL and look at the actuall script;-).

-- Glenn
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9920798
Or u can do debugging:
set -x
./install

and post the ouput.
0
 

Author Comment

by:SilverMecer
ID: 9926367
The Aqua theme can be located here:
http://www.kde-look.org/content/show.php?content=8621

There are many of these but his one look the best to me.
0
 
LVL 20

Expert Comment

by:Gns
ID: 9926889
Yes it's rather ... spiffy... usn't it:-).
Glad that it worked out for you. Hopy you gained some understanding of the "problem" as such too.

Happy linuxing!

-- Glenn
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Postfix issues with spam/auth attempts under NAT 9 110
Weird Samba Connectivity Issue... 7 51
installing LSI MegaRAID Storage Manager on CentOS 7 22 692
IP 10.0.1.2 / 255.0.0.0 61 54
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question