Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
to set up a home server. The first thing that told me something was wrong is when I couldn't ping anything. I have since changed my DNS to Google's (126.96.36.199 and 188.8.131.52), and ping is fine.
However, apt-get doesn't do anything. It gets stuck at 0% [Working] whenever I try to install a package.
I don't know what's wrong. My eth0 interface seems to be okay, but I just can't do anything internet-related yet. If it makes a difference, I couldn't make a wired connection when the PC had Windows on it either.
I couldn't ping anything. I have since changed my DNS to Google's (184.108.40.206 and 220.127.116.11), and ping is fine.
This sounds like a problem with your resolver, which in turn could be a DHCP problem or an improperly configured network interface.
1 - Does this system have a DHCP server that it is supposed to be configured by or is it supposed to be using a static IP address?
2 - If it uses DHCP, does the DHCP configure the DNS?
It may be helpful to post your /etc/network/interfaces so that we can see how you have things configured. It would also be be helpful to post the error messages that you are getting when you try to ping (e.g. no route to host, network unreachable, etc). What happens if you try to ping a numeric address (18.104.22.168 will work) via pinging via name?
This confirms that it is DHCP configured. What does your resolv.conf look like? Unknown host says that it can't locate a DNS server. Does your DHCP list the name servers (this would be typical. I noticed you said "when you changed your DNS to google" you were able to ping. Where exactly did you change it? Clearly something is amiss in this regard. Did you forget to allow this machine to connect through a firewall or something perhaps? The inability to update could mean that traffic is being blocked (firewalled) or it can't resolve the address to establish a connection. I would suggest looking through the log files, e.g. /var/log/messages and others for any indication of trouble.
noob having problems configuring a Debian home server
In my last post, I had trouble getting my server to download packages and ping servers. Since then, I changed my DNS to Google's and stayed with DHCP and a dynamic IP on my home network, and for some reason now I can download packages and ping servers.
Now I need to connect to my server from my PC.
First of all, here's my setup:
Desktop: Apple eMac PowerPC G4, Debian with LXDE
Server: Dell Dimension 3000 Pentium 4, Debian with no GUI.
My two main problems: I cannot successfully set a static IP address on my server; I cannot set up SSH functionality between my PC and my server.
My router IP is 10.0.0.1, and I've tried to assign my server to a few different IPs starting with 10.0.0.x. I also tried a couple different DNS addresses, including my default ISP's DNS and Google's public DNS. I also tried to make my server the DNS server as suggested in the Debian server wiki, and none of these configurations worked. The only way I can maintain any kind of internet connection is by keeping a dynamic IP address.
When I try to SSH, I either get "connection refused" or "host unknown." I think my problem is twofold: I don't have a solid grasp on the syntax when trying to make an SSH connection via Terminal, and no matter how strictly I copy online instructions for editing the configuration files, I still don't get it right.
I eventually want to share files with and remotely access media stored on my server, but first I need to figure out basic connections. I've spent two days looking at various sources for instructions on how to do these things, but I can't seem to get it right. What am I doing wrong?
My Debian home server has one: here are the settings from /etc/network/interfaces in case they can help:
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet static
I don't have a Mac. Everything is either Windows or Linux, so I do my file sharing through Samba.