Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Application to edit .conf files?

  1. #1

    Default Application to edit .conf files?

    Hi guys,

    Been having some minor problems with my VPN after getting a new router and private internet access (the company I use) have suggested editing /etc/resolv.conf by using the command sudo nano /etc/resolv.conf but it says command not found for nano. I was in a real hurry this morning so couldn't check, but is this something I can easily install, or is there another piece of software LEAP uses instead? There was another thing they asked me to type in a while ago to get the software, but LEAP uses zypper so I had to change the command, so wondered if LEAP was similar.

    Many thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,392
    Blog Entries
    1

    Default Re: Application to edit .conf files?

    There are a number of CLI editors to choose from, but nano is simple to use. Install it with
    Code:
    sudo zypper in nano

  3. #3

    Default Re: Application to edit .conf files?

    That's great, thank you. When I open the file using nano (through the terminal/konsole) does it open a standalone text editor or something? I've been asked to edit the file to delete the DNS servers currently in the file and replace with their own ones to see if that sorts my issue.

    Cheers!!

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,392
    Blog Entries
    1

    Default Re: Application to edit .conf files?

    It's a CLI editor, so will open in the terminal. Use it like this
    Code:
    sudo nano /etc/resolv.conf

  5. #5

    Default Re: Application to edit .conf files?

    Thank you. But is it quite obvious as to how to delete sections from the file and then add more text in?

    If possible I want to get all prepared for when I try to do this tonight as I'd like to get it done if possible

    Thank you so much!

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: Application to edit .conf files?

    On Fri 21 Apr 2017 11:46:01 AM CDT, thestig wrote:

    Thank you. But is it quite obvious as to how to delete sections from the
    file and then add more text in?

    If possible I want to get all prepared for when I try to do this tonight
    as I'd like to get it done if possible

    Thank you so much!


    Hi just add your nameservers and add a # to the current ones;
    Code:
    search some.domain
    #nameserver you.cur.ren.t01
    #nameserver you.cur.ren.t02
    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx
    If your using NetworkManager for VPN, then you should be able to just
    configure here?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2|GNOME 3.22.2|4.4.57-18.3-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,157

    Default Re: Application to edit .conf files?

    Quote Originally Posted by thestig View Post
    That's great, thank you. When I open the file using nano (through the terminal/konsole) does it open a standalone text editor or something? I've been asked to edit the file to delete the DNS servers currently in the file and replace with their own ones to see if that sorts my issue.

    Cheers!!
    I think there is some confusion here.

    You asked for nano, so they told you how to get nano.

    Now it seems that you do not know how to use nano.

    As your goal is to edit some text file, just use your favorite text editor. Only thing is to use it "as root". Thus
    either, when it is a text editor, from a terminal emulator (like konsole) running as root (directly from the menu or after typing
    Code:
    su -
    )
    or when it is a GUI editor starting it from the
    Main menu > Execute Command > in the field: kdesu kwrite /etc/resolv.conf
    or similar for other editors and/or DEs.
    Henk van Velden

  8. #8

    Default Re: Application to edit .conf files?

    Quote Originally Posted by malcolmlewis View Post
    Hi just add your nameservers and add a # to the current ones;
    Code:
    search some.domain
    #nameserver you.cur.ren.t01
    #nameserver you.cur.ren.t02
    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx
    If your using NetworkManager for VPN, then you should be able to just
    configure here?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2|GNOME 3.22.2|4.4.57-18.3-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

    Thanks,

    It's not configured with NetworkManager....for some reason it comes up with an error saying it couldn't start the process, so I use the terminal instead. I'll give this a go later tonight, hopefully all will be well! I'll let you know how it goes.

    Many thanks

  9. #9

    Default Re: Application to edit .conf files?

    Quote Originally Posted by hcvv View Post
    I think there is some confusion here.

    You asked for nano, so they told you how to get nano.

    Now it seems that you do not know how to use nano.

    As your goal is to edit some text file, just use your favorite text editor. Only thing is to use it "as root". Thus
    either, when it is a text editor, from a terminal emulator (like konsole) running as root (directly from the menu or after typing
    Code:
    su -
    )
    or when it is a GUI editor starting it from the
    Main menu > Execute Command > in the field: kdesu kwrite /etc/resolv.conf
    or similar for other editors and/or DEs.

    Thank you hcc. I'll actually try using KWrite. Although I THINK I tried "su kwrite /etc/resolv.conf" earlier and it said it could not connect to display (note, I didn't use "kdesu"). I'll try this later. If Kwrite doesn't work, what other basic editors are there that I can install?

    Thanks again

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,157

    Default Re: Application to edit .conf files?

    Quote Originally Posted by thestig View Post
    Thank you hcc. I'll actually try using KWrite. Although I THINK I tried "su kwrite /etc/resolv.conf" earlier and it said it could not connect to display (note, I didn't use "kdesu"). I'll try this later. If Kwrite doesn't work, what other basic editors are there that I can install?

    Thanks again
    Code:
    su kwrite
    will not do it as you found out.
    Please understand that it is of NO IMPORTANCE which editor you use.
    When it "does not work" it is not the editor, but the way you use it that is wrong.
    Henk van Velden

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •