Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Problem: I am unable to run applications. Specifically Squid.
Background: I am using a rackmount MultiTech RouteFinder which uses Squid. Normally we use an HTML interface to administer it. Recently we had a problem where it was necessary to SSH into it to fix a problem. At that point I had never used Linux before, and am still a complete newb at it. Our problem was that somehow our cache had exploded from an average of 300,000 cached objects to aprox 1.5 million cached objects in several minutes. The proxy basically stopped responding. We had to clear the cache. I was able to follow the FAQ on the Squid site but came across a problem. I am unable to actually run squid: "# squid -k shutdown", "# squid -z" or similar.
Explanation: As the basic user set up by MultiTech I receive this error:
"squid: error in loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory"
As Root I simply get
"bash: squid: command not found"
I did read that squid cannot be run as root, so that solves that.
I looked at the permissions:
-rwxr-xr-x 1 system system 656524 Nov 2 2001 squid
Thinking that maybe I needed to run the file as system I altered the passwd file to direct me to bash at login, and then used "su system" to log in as system. When attempting to run squid I received the "bash:squid: command not found" error again. So I switched the login path back to false for system.
I thought that perhaps because I was SSH'd into it I was unable to run, so I got a USB keyboard and a monitor and logged on locally, with the same results.
I couldn't find the file "libcap.so.1" which would explain that error, however Squid starts and stops fine from the web interface, so there must be a way to do it from the command line so I can add the switches I need.
I contacted MultiTech tech support concerning the cache problem, who were helpful, but not very knowlegeable with the inner workings of their product. I was put on with an engineer who essentially told me he wouldn't help me because it went too in depth into linux. He proceeded to tell me I could just rm -rf the cache directory, reboot the RouteFinder and it would automatically recreate the directory. It didn't recreate the directory. I told him that if he could help me run squid from the command line, that "# squid -z" was supposed to recreate the cache directories. He refused to help me and essentially left. One of the lower tech support guys eventually ssh'd into the box and created the directories. He said he copied the directories from another RouteFinder. The proxy was working again so I was happy for time being.
I would still like to learn why I cannot run squid from the command line with this product, so that in the future if this happens again I don't have to pull my teeth getting help from MultiTech. Can anyone tell me why I can't run it, and how I can make it run?
I am still a nearly complete newb. I've installed Slackware on a box at home and messed around a bit but am still pretty much clueless, so please give a detailed explanation if you could so I can learn.
The reason for the web interface not failing with the shared libraries is probably because the script starting squid shall include some LD_LIBRARY_PATH which tells squid: "hey, you can look for extra libraries within $LD_LIBRARY_PATH"