Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

While attempting a wifi fix, I was prompted to run the following commands:

sudo mv /etc/init/network-manager.conf /etc/init/network-manager.conf-disabled
sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop.disabled

How can I reverse/undo those commands?

I ask because I could not get the wifi-fix to work, but am now unable to revert to an old workaround. I suspect this is because of changes made by those two commands. And so until I get this resolved, I cannot connect to the internet in Ubuntu, which is my primary OS.

Note that my netbook has no ethernet port, therefore I have no way of connecting to the internet in order to restore Network Manager, as has bee suggested to others facing Network Manager issues.

The fix I was attempting is detailed at this link:

Marvell's wireless driver not recognized

share|improve this question
    
Maybe a few words of explanation: "sudo" lets you run a command as a different user, usually root (required here, for files in /etc are usually system configuration files owned by root). "mv" moves a file to a different name/folder. "mv A B" renames file A to B, or if B is a directory, it moves file A to B/ and keeps the filename. –  soulsource Jul 11 '13 at 5:15

1 Answer 1

up vote 2 down vote accepted

Since they both should theoretically be root owned to begin with it should be as simple as:

sudo mv /etc/init/network-manager.conf-disabled /etc/init/network-manager.conf 
sudo mv /etc/xdg/autostart/nm-applet.desktop.disabled /etc/xdg/autostart/nm-applet.desktop 

If they have unexpected permissions, you will have to reverse that too and accept over-writes.

share|improve this answer
    
Afaik permissions should be preserved when copying/moving files as root. –  soulsource Jul 11 '13 at 5:10
1  
That's possible, I'm just trying to see all possible problems coming instead of having an oh crap moment. –  hbdgaf Jul 11 '13 at 5:11
    
I'd do the same. –  soulsource Jul 11 '13 at 5:16
    
I'm online again! Ahhhh thank you. –  TX-NY-CA Jul 11 '13 at 6:03
    
NP...we try...hard. Just remember we helped you. –  hbdgaf Jul 11 '13 at 6:06

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.