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.
I have tried putting in my own IFCONFIG commands in /etc/rc.local to set up a static IP address on eth0. After boot I check it using the ifconfig cmd but it doen't appear to have worked.
I would like to write my own message from rc.local to make sure my part is getting executed but gprintf doesn't appear to do it.
After a lot of heartache I finally worked out that my D-Link D504T router is NOT populating the DNS of my eth0 device. I would also like to do this during boot but can't find what command to use. MAN IFCONFIG shows nothing? Currently I use the Mandrake Control Centre's Network & Internet Internet access to do this but don't know how to find what command IT uses.
if you can find out the ip address of your isps dns servers just put them in your /etc/resolv.conf
if your with me....
auto setup. mandrake. hmm. i don't like mandrake because if abused me when i was young and linux innocent but i know the RH based distros keep their network config scripts in /etc/sysconfig/network-scripts/
the file i nthere you need to edit is called ifcfg-DEVICENAME ie ifcfg-eth0
have to put the DNS in every boot.
I'd like to know how to write to syslog when rc.local runs as I want to be sure that rc.local is working. If so then the commands I've put ibn there aren't working.
Thanks anyway, can you answer this for me please.
you shouldn't really be running network setup commands from rc.local. not sure where the network scripts on mandrake are.
don't know how to send stuff to the syslog
have you tried looking in some of the other logfiles to see if there are any messages
you shouldn't have to put the dns in every time unless something else is changing your resolv.conf
it should say at the top of your resolv.conf what has changed it. (maybe not in mandrake)
the D-link D504T / driver that changes it back. Whatever it is it means that I have to put it in over the top.
I read other posts that said to put things in rc.local. I only want the 3 ifconfigs I need
ifconfig eth0 down
ifconfig eth0 192.168.3.1
but they don't seem to be executed as once I log-in I su & ifconfig only to find eth0 still has not been sorted.
I don't care really where they go so long as they get exexcuted.