LinuxQuestions.org
Review your favorite Linux distribution.
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 05-26-2018, 01:01 PM   #1
ceorl
LQ Newbie
 
Registered: May 2018
Posts: 3

Rep: Reputation: Disabled
Question How do I run this package I downloaded?


Oh My Gosh this question is probably so ridiculously simple. I expect that I am missing something super basic.

I have Ubuntu installed along with Win10 on my laptop. I do not remember the details on how I did that, but if you need to know, I will try. When I start the laptop I get a menu to either run ubuntu by default, or select windows as the third option of four.

I downloaded a zipped file from
https://github.com/abiusx/L3D
and extracted it using windows, then copied to a thumb drive and then I fired up Ubuntu and copied it to the ubuntu desktop.

The readme.txt tells me:

***
To run the system and generate a tree, simply do the following:

./run L++/tree.l++
***

I can navigate thru directories and there is a file called tree.l++ in a directory called l++

I can change permissions and give files r/w/x permission

The syntax of the following:
./run
is the mystery. I get nothing from google searches on that syntax.

There is a file called run.sh in the same master folder as the l++ folder. This looks to me like a red herring: the file extension is .sh, not .exe or .a

I apologize if I am not giving enough info.

How do I run this thing? What does it mean *exactly* when it tells me to "simply do the following"?
 
Old 05-26-2018, 01:06 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
You first need to un-zip the archive to your hard drive. Then open a terminal window, navigate to the folder that you un-zipped the archive you have downloaded to, and type the following commands:

Code:
chmod +x run.sh
./run.sh
The first command there will give it "execute" permission and the second command will hopefully run the program.
 
Old 05-26-2018, 01:28 PM   #3
ceorl
LQ Newbie
 
Registered: May 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
You first need to un-zip the archive to your hard drive. Then open a terminal window, navigate to the folder that you un-zipped the archive you have downloaded to, and type the following commands:

Code:
chmod +x run.sh
./run.sh
The first command there will give it "execute" permission and the second command will hopefully run the program.
Thanks!

So a file with a .sh extension will run?

I will go try that, brb
 
Old 05-26-2018, 01:33 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by ceorl View Post
Thanks!

So a file with a .sh extension will run?

I will go try that, brb
The .sh means it's a shell script file - it's a script, so yes, it will run once you give it "execute" permission. .exe files are Windows executable's and mean nothing to Linux, as they are not Linux executable's - executable files in Linux don't normally have any file extension.

The ./ means it's in the folder you're currently sitting in at the command-line.

Last edited by jsbjsb001; 05-26-2018 at 01:37 PM. Reason: corrections/additions
 
1 members found this post helpful.
Old 05-27-2018, 08:07 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You may not need to uncompress the package if you obtained it using git. But you have to be in the same directory as run.sh in order for './run.sh' to work. The dot means 'current directory'. Otherwise, to run programs not in your path, you must add the path.
 
Old 05-27-2018, 11:28 PM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by AwesomeMachine View Post
You may not need to uncompress the package if you obtained it using git. But you have to be in the same directory as run.sh in order for './run.sh' to work. The dot means 'current directory'. Otherwise, to run programs not in your path, you must add the path.
Isn't that what I already said in post #4 ?? Why do you keep invading nearly every thread to repeat what others have already said ??
 
Old 05-28-2018, 02:00 PM   #7
ceorl
LQ Newbie
 
Registered: May 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
The .sh means it's a shell script file - it's a script, so yes, it will run once you give it "execute" permission. .exe files are Windows executable's and mean nothing to Linux, as they are not Linux executable's - executable files in Linux don't normally have any file extension.

The ./ means it's in the folder you're currently sitting in at the command-line.
Sorry for the delay, my weekend got highjacked 5 minutes after I typed 'brb'.

That worked of course, thanks very much. Unfortunately there was an error in executing the code but that is another story.
 
  


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
[SOLVED] Where is the downloaded package? sagxam Linux - Software 6 01-01-2018 03:10 AM
[SOLVED] Unable to install a downloaded software package Gshankar Linux - Software 3 04-04-2014 09:15 AM
installing downloaded package paul85 Ubuntu 12 10-05-2006 03:14 PM
downloaded package off web. install not in tree damoncf Debian 2 03-08-2006 04:49 PM
Possible to search by content of package not downloaded yet? davidas Debian 4 04-09-2004 03:28 AM

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

All times are GMT -5. The time now is 08:42 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
Open Source Consulting | Domain Registration