Reply To: Help Editing Grub

Forum › Forums › New users › Welcome to antiX › Help Editing Grub › Reply To: Help Editing Grub

#38700
Xecure
Member

    You can edit the file with whatever text editor you want, as with all linux systems.

    My preferred graphical text editor is geany, so I would do (on a terminal emulator):
    gksu geany /etc/default/grub

    if you are running with no graphical interface (no X), you would have to use a cli text editor (like nano or vim, as you suggest, using sudo instead of gksu).

    The problem you are encountering:

    I tried to do it using commands like “gksudo gedit /etc/default/grub” “gksu gedit /etc/default/grub” “sudo -H gedit /etc/default/grub” but they didn’t do anything

    That is because you forgot to install gedit (which is the default text editor of the GNOME desktop environment, but not on antiX, that doesn’t run GNOME as default). If it is not installed, you cannot expect to launch it from the terminal emulator.
    antiX does not come with gedit installed by default, so if you like gedit above all other graphical text editors, simply install it.
    antiX does come with: geany, leafpad, nano, vim, and many other cli editors (I cannot remember all right now).

    You could also open a file manager (like Spacefm, included in antiX), navigate to /etc/default folder, right-click the grub file and select “Edit as Root”, or open the file manager as root (in spaceFM it can be done point-and-clicky way in the top submenu File > Root Window, or in terminal emulator: gksu spacefm), navigate to the /etc/default folder, right-click the grub file and select with what application you want to open and edit the file.

    Many options are available.

    • This reply was modified 6 years, 2 months ago by Xecure. Reason: extra info
    • This reply was modified 6 years, 2 months ago by Xecure. Reason: sudo for cli, gksu for gui

    antiX Live system enthusiast.
    General Live Boot Parameters for antiX.