Announcement

Collapse
No announcement yet.

hELP!? cant get text editor to work as su

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    hELP!? cant get text editor to work as su

    Hi I want to edit my grub menu.lst file

    When I do sudo su and then kate menu.lst

    it says

    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified

    cannot open display:
    Run 'gedit --help' to see a full list of available command line options.
    root@jim-desktop:/boot/grub#

    Why is it refusing to open the text editor?


    #2
    Re: hELP!? cant get text editor to work as su

    Open a console. Type:
    Code:
    kdesu kate /boot/grub/menu.lst
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: hELP!? cant get text editor to work as su

      There's a How-To fix that error somewhere here on the board, I saw it recently (past couple days), but now can't find it. I get that error quite often, too.


      If kdesu kate also doesn't go for you, then:

      You can re-boot; or first try Control-Alt-Backspace..

      You can also just give up and go for GUI, if you can:
      Konqueror
      Enter /boot in the location window
      click on the grub folder
      right-click on menu.lst
      Actions > Edit as Root
      then it opens (as root) in KWrite or in Kate
      do your edits
      then File > Save and File > Quit
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment

      Working...
      X