Solved

Easier way to restart networking in Ubuntu?

Posted on 2008-09-29
2
343 Views
Last Modified: 2013-11-15
For some unknown reason my Ubuntu file server seems to loose it's connection to the network. I was wondering if there is a simple way in Ubunutu to create a "application" that will just perform a command line action. The command I want to invoke is:

sudo /etc/init.d/networking restart

That way I can tell someone over the phone to just run the "Restart Network" application on the desktop instead og getting them to find the terminal, type sudo etc... I don't mind them typing in the admin password, but if they didn't have to that would be super!

Thanks.
0
Comment
Question by:cawthron
2 Comments
 
LVL 5

Accepted Solution

by:
pointerstop earned 500 total points
ID: 22602177
In the first place, if you really want to run "networking restart", then just right-click on the desktop, select "Create New ... Link to application", and enter the command you "sudo /etc/init.d/networking restart" as the application.

Don't forget to give the user who's going to execute that "sudo" access, via visudo

However, you'd be better off, as a temporary workaround!, writing a script that checks if the interface is up, and if not, "ups" it, then run it from cron every minute.

Even better would be to figure out what takes down the interface.
0
 

Author Closing Comment

by:cawthron
ID: 31501411
Thanks pointershop.

I knew there was a a way to create apps from commands somewhere!

Will work on fixing problem this weekend, for now this fix will do - I think it has something to do with a faulty Cnet PCI network card - as I have exact same setup on another box and there is no problems. Hopefully when I swap out the card all will be fixed, if not..... I'll be back!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco Access point 6 89
Identify bottom to remote server 2 48
Is it possible to host a website on a windows vps 4 57
ERR_NAME_NOT_RESOLVED 7 19
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question