Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a small router without a keyboard and mouse, and I'd like to have it display network statistics using "jnettop" whenever the machine is booted up. How can I get the machine to display this information without requiring logging in and launching the application? The application jnettop requires root (I think) -- is this secure? If not, is there a better way to do this?

Thank you.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Assuming your router is running a Unix variant, like Linux or BSD, you can set up auto-login on tty1 and have the login script run jnettop (or anything else). The details of setting up auto-login depend on the startup scripts used by your distribution, but take a look at the discussion of setting up a MythTV front-end for ideas: http://www.mythtv.org/wiki/Frontend_Auto_Login

If this isn't clear I will try to flesh it out a bit, but hopefully it gets you started.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.