LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 06-24-2007, 03:20 PM   #1
fyr3
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware 12.2
Posts: 19

Rep: Reputation: 0
slackware commands (stopping samba from starting automatically, etc)


Hey all, im all up and running with slack on my ibook but im not sure about a couple of commands. the things in /etc/rc.d how to i stop/restart and disable them from starting. I need to restart my alsa and i have no idea how. Also, is there any way to get a color coded terminal window as far as which files are what types.. like folders a diff color and programs like alsa diff as well. Thanks!
 
Old 06-24-2007, 03:45 PM   #2
fyr3
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware 12.2
Posts: 19

Original Poster
Rep: Reputation: 0
ok ok, i figured out how to make the ls output color, but is there any way for the default shell to do it?
 
Old 06-24-2007, 03:56 PM   #3
randomsel
Member
 
Registered: Oct 2006
Location: Wilmington, DE
Distribution: Slackware 11
Posts: 201

Rep: Reputation: 30
check out .bashrc for bash, don't know about the other shells, but there should be similar stuff...
 
Old 06-24-2007, 04:41 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
For stuff in '/etc/rc.d' just call them with start, stop, or restart.

say
Code:
/etc/rc.d/rc.cups restart
To stop them from being loaded, make them not executable:

Code:
chmod a-x /etc/rc.d/rc.cups
 
Old 06-24-2007, 04:53 PM   #5
Prostetnic_Jeltz
Member
 
Registered: Feb 2006
Posts: 66

Rep: Reputation: 16
to stop samba from starting, you could comment out the corresponding lines in /etc/rc.d/rc.M or, make the file "rc.samba" non-executable with chmod

to start/stop, you'll have to check the individual rc script. for instance if you read rc.httpd, you'll see a "case" clause that shows that it can be issued with "start" "stop" "restart" -- just run the script name followed by the option you want. rc.udev has a few more options, like "reload" "force-reload" etc.
 
Old 06-24-2007, 05:09 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,021

Rep: Reputation: 125Reputation: 125
If you have coreutils installed you can modify /etc/profile.d/coreutils-dircolors.sh for colour display in the bash shell. The default setting is auto (colorizes output to ttys, but not pipes), but you can change it to always.
 
Old 06-24-2007, 08:21 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,747

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
to start/stop, you'll have to check the individual rc script. for instance if you read rc.httpd, you'll see a "case" clause that shows that it can be issued with "start" "stop" "restart" -- just run the script name followed by the option you want. rc.udev has a few more options, like "reload" "force-reload" etc.
If you simply call the script without any arguments, it will print out the available switches, which is a bit easier than actually having to read through it. For example:

Code:
tj@T-Bird:~$ /etc/rc.d/rc.udev 
Usage: /etc/rc.d/rc.udev {start|stop|restart|reload|force-reload}
 
  


Reply

Tags
basic, commands, slackware


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stopping basic commands like mv, cp and tar from using 100% cpu darkleaf Linux - Software 9 06-22-2005 05:41 PM
RedHat 7.3 - Stopping logging on to LAN automatically deebeecee Linux - Newbie 1 09-15-2003 12:46 AM
Stopping X from starting KennyK Linux - Software 4 06-03-2003 08:12 PM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 01:10 AM
Starting/stopping httpd bughunter Linux - Newbie 3 10-20-2001 10:02 AM


All times are GMT -5. The time now is 07:05 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration