LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-30-2002, 08:07 AM   #1
ematogo
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Rep: Reputation: 0
Squid configuration


Hi folks!
I am trying to install squid on my newly intalled linux redhat 7.0 but something is not clear when I was reading the bandwidth limiting howto's.
I am not very clear about this command line.

# useradd -d /cache/ -r -s /dev/null squid >/dev/null 2>&1

also I would like to know the advantage using a different installation folder other than the default folder /usr/local.

Thanks
 
Old 12-30-2002, 09:18 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
the command just adds the squid user, that's all, nothing to do with bandwidth limited. squid user is needed to install squid.
 
Old 12-30-2002, 02:02 PM   #3
ematogo
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Hi There!
Thank you very much for the reply. what I was trying to do actually is to implement bandwidth limiting using delay pool feature of squid. I need somebody to help me do this step by step. Thank you
 
Old 12-30-2002, 02:13 PM   #4
ematogo
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Hi There!
Please I don't understand /dev/null squid >/dev/null 2>&1 part of the command. can you please explain this for me.

Last edited by ematogo; 12-30-2002 at 02:39 PM.
 
Old 12-30-2002, 06:44 PM   #5
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
-s /dev/null

...makes /dev/null as the shell, this is a security thing, makes sure people don't login as cache which they shouldn't be doing.


>/dev/null 2>&1

...makes sure you don't see any output from adduser, this is safe to remove.
maybe the person who posted these instructions had a funny/buggy version of adduser and printed out alot of junk.
 
Old 12-31-2002, 05:20 AM   #6
ematogo
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Hi there?
thanks for the explanation.
one more question, why is it necessary to install squid in a folder other than the default folder /usr/local/squid?
 
Old 12-31-2002, 10:09 AM   #7
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
it's not necessary, I have my squid all in /usr/local/squid

maybe they're slow typers, quicker for them to type /cache instead.
 
Old 12-31-2002, 10:56 AM   #8
ematogo
LQ Newbie
 
Registered: Dec 2002
Posts: 5

Original Poster
Rep: Reputation: 0
please can you give me step by step guide as to how to compile and install the squid ?
 
Old 12-31-2002, 12:22 PM   #9
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
./configure
make
make install
/usr/sbin/useradd squid
su -l squid -s /bin/sh
/usr/local/squid/bin/squid -z
/usr/local/squid/bin/squid

warning: installing is the easy part, you still have to configure it to do what you want it to, unless the default setup is ok with you.

it's important to take a look at the error messages in /usr/local/squid/var/logs/cache.log
 
  


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
squid configuration tuXfree Linux - Newbie 2 08-23-2005 03:27 PM
squid configuration karan101 Linux - Networking 7 02-01-2005 03:49 AM
best squid configuration shanino Linux - Networking 11 08-21-2004 02:55 AM
Squid Configuration (visible_hostname) villajohn Linux - Software 0 04-14-2004 05:15 PM
Squid Configuration accelicim_ho Linux - Software 2 03-26-2002 05:42 AM


All times are GMT -5. The time now is 09:19 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 Google+: linuxquestions
Open Source Consulting | Domain Registration