Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 recently configured a Linux router to share the internet in my local network. I used to have a hardware router before this, but it doesn't work anymore. On the router it was something called "Web Configurator" from where you could do things like forward ports, set up DHCP and such. Basic router stuff. There were also some system information about the internet connection which displayed <B>uptime</B>, transferred/transmitted bytes/packets, current IP and such.
This is something I really miss, so I began making a site like this for my Linux router. This is where my problem comes in. I have no idea how to display the internet connection uptime. I know I can find out when the connection started by looking at when i.e. /var/run/ppp0.pid was started, but that doesn't help me much since I don't know what to do with it. I don't know perl or PHP, so I'm not able to make a script which figures out this issue.
I've searched the internet, but this hasn't helped a lot.
Another problem is how to export the information from the router box and over to the web server. -My- best solution is to set up crontab entry for scp'ing a file from the router and over to the server, but then I need a script which calculates the uptime and prints it to a file. How to export is though not my main problem, but I'm really open for better suggestions.
But what I really need help about is the uptime issue.