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.
iptables is next..
It can be a pain coz the package and the custom version can be separate, but you need to be sure the command line finds the correct version.
My box has /sbin/iptables = old version & /usr/sbin/iptables = new version
When I do which -a iptables I get
gate:~# which -a iptables
The PATH variable decides which one I get first..
PATH = PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
This can be changed for a user in their .profile file..
Depending on how you access iptables, via su- or sudo, you will have to change at least root user's .profile and any others who need access to iptables.
The system default PATH is in /etc/profile
However, it may be even better if you can uninstall iptables.
Woody has dependency issues, yours may not..
Make a copy of /etc/init.d/iptables before uninstalling ..
This file needs to be edited to show the correct locations for iptables.
The locations are selected in the build commands for iptables.
do ./configure --help for the options.
If you can't uninstall the package you will need to specify a location that works with the PATH settings to find the new version first..
They have to be separate to stop a package upgrade from overwriting the custom ones..
And coz you've made a copy of /etc/init.d/iptables, the apt-get package upgrade scripts will ask which config file to use during upgrading.
Last edited by peter_robb; 02-25-2005 at 10:35 AM.
which version you want me to uninstall - the old one (got with apt-get which is 1.2.11 - can do an apt-get remove - *presume* you mean this one...?) or the new one (which is 1.3.0, which i downloaded and make'd - dont know how to install that one
Keep trying tho'
You can always copy the 3 files into /sbin..
Better to fix the PATH variable tho', put /usr/local/sbin first on the list..
What are you going to do for an iptables ruleset?
What I prefer is to have several scripts, but save them using the /etc/init.d/iptables save active (& inactive) options. And only use that for starting/stopping.
Usually when scripts start, they have a rule clearing section first to be sure only their rules exist.
Choice is open, but for me I get a known good script that I can turn on/off while playing with more complicated scripts from other tools..