LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2006, 02:10 PM   #1
shadowdrums
LQ Newbie
 
Registered: May 2006
Distribution: slackware/fedora
Posts: 3

Rep: Reputation: 0
How do you run shell scripts?


I want to get some more applications for my computer. However, im new at linux. my friend said run the shell script but i dont know how. Can someone help me?
 
Old 05-14-2006, 02:27 PM   #2
meng
Member
 
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
At the command prompt, type the name of the script you want to run.
If permissions are set such the script is not executable, you'll have to "chmod +x <nameofscript>" first.
 
Old 05-14-2006, 02:42 PM   #3
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
And if the current directory isn't in the PATH, then prefix the script name with ./ (dot slash).

Cheers,
Eddie
 
Old 05-14-2006, 02:46 PM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
If you want slackware packages, first check that what you want is not on the install disks.
If not, then find yourself a nearby slackware mirror, start by checking here:

http://www.slackware.com/getslack/

navigate to your slackware version, and get your package. The PACKAGES.TXT is handy for this as it tells you where it is, eg slackware/ap

now the next site will help you get started with slackware, and explain how to install, remove, upgrade packages, and much more...

http://www.slackbook.org/html/book.html

yet more packages are here:
http://www.linuxpackages.net/

and of course you can compile your own from source, when you are ready.

there is also much help provided by linuxquestions friends, the Shilo's 'How I do it all' post (sticky at the top of this forum) is very popular

good luck and welcome to Slackware!

tobyl

Last edited by tobyl; 05-14-2006 at 02:52 PM.
 
Old 05-15-2006, 06:18 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by MQMan
And if the current directory isn't in the PATH, then prefix the script name with ./ (dot slash).

Cheers,
Eddie
And don't succumb to the temptation to add the current directory (.) to your path, it's a security hazard. Put up with adding the "./".

Put frequently used scripts in /usr/local/bin or perhaps add a ~/bin (/home/you/bin), & add it to your PATH.
 
Old 05-15-2006, 11:02 AM   #6
farpoint
Member
 
Registered: Sep 2004
Location: France
Distribution: Debian Sarge, Etch. FC1,2,3,4,5. Slackware 10.0. Gentoo. Kubuntu.
Posts: 193

Rep: Reputation: 30
Hi Shadowdrums. If you want something that makes it a bit easier to update, and install packages, have a look at. http://software.jaos.org/ . The 2 packages that you want are "Slapt-get" and "Gslapt" which is the GUI front end for slapt-get. If you do get them, apart from the tips in the README on the site for messing with the config file, you will need some sources for slapt-get to access for the packages. The 2 I'm using on my Slackware 10.0 install are.

source=http://www.slackware.at/data/slackware-10.0/

and

source=http://software.jaos.org/slackpacks/10.0/

Just change my 10.0 on these, for that of your Slackware version.

The sources are added in /etc/slapt-get/slapt-getrc.
su to root on the CLI (terminal), open a text editor, Kwrite, Gedit, or whatever, add the sources, save, and close the text editor.

Again on the the CLI, while su'ed to root, type.
slapt-get --update
this will update the package list with the latest packages. Then run.
slapt-get --dist-upgrade
which will update your machine, if it needs it.

slapt-get --install <package_name> will install a specific package, and deal with dependencies, if you know the package name. Otherwise use Gslapt (the GUI), to see a list of available packages, and you can install them from Gslapt.

slapt-get --clean is usefull, as packages downloaded are kept archived, and can take up considerable harddrive space after a while. You will find these in.
/var/slapt-get.

All the best. Nigel. aka farpoint.
 
  


Reply



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
Possible ways to run shell scripts on Windows Uday123 Linux - General 1 04-05-2006 12:48 AM
Can't run shell scripts even as root nitrousoxide82 Linux - Newbie 2 04-24-2005 04:47 PM
can echo be used for popups in shell scripts run by cron? dr_zayus69 Linux - Software 4 04-12-2005 06:30 PM
Can't run shell scripts I write? JustinCoyan Slackware 2 08-06-2004 12:50 PM
How to? Run Shell scripts jmr0311 Mandriva 2 07-14-2004 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:31 AM.

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