LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2012, 06:06 PM   #16
gubby
LQ Newbie
 
Registered: Feb 2012
Location: Michigan, USA
Distribution: Fedora
Posts: 12

Original Poster
Rep: Reputation: Disabled

Yes, the link you posted is the same one. What is a bash script? I appreciate all of the help you guys are giving me. I was trying to find a replacement for Fitness Assistant which is a M$ program.
 
Old 03-29-2012, 06:14 PM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Working at the cmd line, you need to understand how it works ; try this tutorial http://rute.2038bug.com/index.html.gz.
Note that when you type into a cli, you are talking to a 'shell'; there are many types of shell, but on Linux the usual default is 'bash'.
(bash is basically a programming lang)
Check by running
Code:
echo $SHELL
& post the result.

A shell (bash) script is simply taking a sequence of shell cmds and putting them into a file, so that you can then invoke the file in one cmd, instead of running each cmd separately by hand.
See the tutorial linked above. If it helps, think of it as the equiv of DOS .bat files, except bash is much more powerful.

More bash links
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

HTH

PS a a good searchable site for Linux cmds http://linux.die.net/man/

Last edited by chrism01; 03-29-2012 at 06:16 PM.
 
Old 03-29-2012, 06:53 PM   #18
Antares.Liu
LQ Newbie
 
Registered: Mar 2012
Distribution: Fedora 16 XFCE
Posts: 19

Rep: Reputation: 3
maybe the user you logined has no write permission of the directory.
 
Old 03-29-2012, 08:46 PM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,287

Rep: Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384
In your post #13, you refer to files downloaded, files plural. The site I linked to which you indicate is the same on had only one file and that was a bash script. In your post #14, you indicate this file is in /usr/local/ and is named openfitness. When I downloaded it, I got the single file below. Is this what you have?

Quote:
openfitness_unix_1_0_0.sh
If it is and it is in /usr/local, log in to a terminal as root user and make it executable. Owner:group for /usr/local is root:root which is why you would need to log in as root.

At the root prompt type: cd /usr/local/
Next as root type: chmod 755 openfitness_unix_1_0_0.sh - or whatever the actual name of the file is.

This will make it executable for all. You could also move it to your /home/user directory.

Last edited by yancek; 03-29-2012 at 08:49 PM.
 
Old 03-29-2012, 09:36 PM   #20
gubby
LQ Newbie
 
Registered: Feb 2012
Location: Michigan, USA
Distribution: Fedora
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yes ,that is the downloaded file. But when I ran the file for installation, that's when it installed to those directories.
 
Old 03-29-2012, 09:43 PM   #21
gubby
LQ Newbie
 
Registered: Feb 2012
Location: Michigan, USA
Distribution: Fedora
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yancek, that's not the problem.I have already made the file executable and have successfully installed it to my hard drive. When I start the program,that's when it shows me the warnings that I have previously described
 
Old 03-30-2012, 09:57 AM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,287

Rep: Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384
Quote:
I have already made the file executable and have successfully installed it to my hard drive.
So the program has been installed to /usr/local?
How do you start the program? Clicking an icon, running a script in a terminal? as a user? as root?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File permissions v. directory permissions Completely Clueless Linux - Newbie 7 07-09-2009 08:33 AM
Directory permissions focus1 Linux - Security 4 06-06-2006 04:09 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
directory permissions odious1 Linux - Networking 3 07-15-2003 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration