2

I'm trying to create an exception file to disable my ethernet as I think it's responsible for my 350s+ boot times, please see section of dmasg below :-

[ 3.750961] sd 6:0:0:0: [sdb] Attached SCSI removable disk [ 364.079424] ADDRCONF(NETDEV_UP): eth0: link is not ready

I'm following this answer Disable Ethernet permanently to speed up boot time and I've created the file but I can't save the edited version, the permissions tab tells me it's owned by root.

Any help is most appreciated. I'm a proper linux newbie, trying to get it to work on this laptop is my first foray into Ubuntu. I read messing with the root 'account' is not something for people who don't know what they're doing (i.e. me!). Please be gentle :-)

2 Answers2

7

You need to open the terminal (ALT+CTRL+T) then enter:

gksu gedit /path/to/file.conf

Enter your password, then edit the file and save.

Uri Herrera
  • 14,866
Steve
  • 790
2

A more general solution that also works in 18.04 and later in which gksu has been removed from the repositories, virtual consoles (tty) and on headless Ubuntu Server operating systems is to use Ubuntu's built-in default text editor for editing files from the terminal.

sudoedit /path/to/file.conf

This is logically equivalent to writing the same command the long way:

sudo nano /path/to/file.conf

The instructions for using nano text editor are always displayed at the bottom of the page. Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location. Use the keyboard combination Ctrl + X to exit nano.

karel
  • 114,770