How could I possibly learn Linux & Debian when no accurate help is given
DebianThis forum is for the discussion of Debian Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How could I possibly learn Linux & Debian when no accurate help is given
I must say I'm very disapointed. I' a newbie, and have recently installed the Debian 3.1 Sarge, and have several problems and have therefore tried to get some answers on them one by one to finally be able to stop using Windows. But how could I... when no help is around. I tried more than this forum and the lack of accurate help are about the same. I have bought serveral books about Linux and even the Debian 3.0 Bible, but find much to wish for.
So please.... if there is answers to my question below... I would really appreciate an answer to the problem.
The title ".....no accurate help is given...." is not appropriate here.
If you read that thread - you were given accurate help - for free - in 24 hours even!!!
You use DHCP. Your IP, gateway, everything will disappear when you obtain a DHCP lease.
If you don't know (you might not) - DHCP stands for Dynamic Host Configuration Protocol. This is the technology used to assign IP addresses when a machine comes up on boot. It will configure (or in your case - reconfigure) all the necessary files so that to config is complete. Your entry is deleted.
If you want to keep your gateway, and IP info persistent at reboot, you must disable DHCP.
I am sure that you have done this because you have to do this in order to edit the file but just a stupid thought. I have never had any problem with my interfaces file losing the info that I have set. So my question to you is what editor are you using just wondering. Vi or Vim?? but when you are adding the line to the interfaces file you are stopping the insert and writting it to memory are you not. I know that this is probably no help to you but I was just wondering because no one asked and when I first started with linux I would have messed this up. So just a thought sorry if it is of no help.
Hi, and thanks for your effort to help here. If I should summarize it, it will be like below:
Have recently installed the Debian 3.1 Sarge (multiuser workstation install) and I can access a webserver of my own here at my local LAN, but I can't access the Internet, if I don't do this in before:
1) Remove a default setup, 'route del default eth0'
2) Adding, 'route add default gw 192.168.7.5 eth0', which address belongs to my Freesco Linux router.
3) Remove of the domain name to my local old Debian 3.0 Samba server (192.168.7.1) which also handles the DHCP addresses to all Windows and Linux workstations within the local LAN. I use the graphical networking tool for this in GNOME. I'm logged in as root user in a terminal window doing these route commands.
After a few minutes, every setup done above are removed in the route table, and the domain name is back also, and I have to do all again to be able to surf. What is overwriting my changes.
To my knowledge, there is no rule that says that a DHCP server and the gateway/router need to be the same computer. Please, correct me if I'm wrong here.
I find it strange to be forced to use static IPs as PenguinPwrdBox says above, to able to get it to work, because I run my Windows workstations this way and they use DHCP as well. I thought Linux would be more configurable than Windows, and therefore this would be a piece of cake. About being given accurate help or not, my meaning is not to be rude or to offend anyone, but it's kind of frustrating not being able to getting any further. If you like to give me some hint or two on what step I need to take to be learning more about Linux and specially about Debian, it would be grate.
Hmm...
If I understood everything correctly, then you are using DHCP. DHCP will periodically (typically every time the lease is renewed) overwrite all your network settings. Hence you have to do them again every now and then.
This, of course, is very undesirable and not at all necessary. However, you have currently given us insufficient information to diagnose the problem. My best guess is that your DHCP server is misconfigured, but I'm at a loss to explain why Windows works anyway.
Yes, you are correct, the DHCP server and the gateway need not be the same machine. What you are attempting to do could, in theory, work (in fact, a friend of mine has the exact same setup).
But, given the fact that things apparently don't work for you, you basically have two choices:
1. Use a static IP, as has been proposed
2. Try to figure out what is wrong with DHCP.
Note that the second option is far more complicated than the first one (although you also may learn more).
Should you try to go for the second alternative, and want to have more help, please do the following:
1. Boot windows, open a dos-box, type ipconfig /all, and post the results
2. Boot linux, log in as root, execute both ifconfig and netstat -r and post the results
3. Also post the content of the /var/lib/dhcp/dhclient.leases file
Low-level configuration of network interfaces can be automated by means of the Dynamic Host Configuration Protocol (DHCP). Your firewall or router box or your broadband ISP may furnish IP addresses and other parameters this way.
To make this work you must install one of the following packages:
* dhcp3-client (version 3, Internet Software Consortium)
* dhcpcd (Yoichi Hariguchi and Sergei Viznyuk)
* pump (Red Hat)
pump is simple and widely used. dhcp3-client is complex but more configurable.
Only thing missing is the content of your /var/lib/dhcp/dhclient.leases file.
Anyway, if I figured things out correctly, you might want to check out /etc/dhclient.conf and /etc/dhclient-script. They process the received dhcp settings. Manpages available ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.