Solved

Easier way to restart networking in Ubuntu?

Posted on 2008-09-29
2
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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.

749 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