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

Thread: How to: Edit /etc/sysctl.conf

  1. #1
    Join Date
    Jan 2013
    Location
    Brazil
    Posts
    327

    Default How to: Edit /etc/sysctl.conf

    Hello.

    I installed avast on suse 12.2 and after update it gives "invalid argument". Solution on Ubuntu based distros would be "gksu gedit /etc/sysctl.conf" but I can't edit the file this way.

    Any alternative to "
    gksu gedit"? I need to open the file as root and edit it.

    Thanks in advance

  2. #2
    Join Date
    Jun 2008
    Location
    where I am is where I am
    Posts
    1,164

    Default Re: How to: Edit /etc/sysctl.conf

    Please tell us what DE & Opensuse version you're using.
    I'm just a curious cat
    My 64 bit: RADEON RX 570 |CPU AMD - Ryzen 5 1600
    MOTHERBOARD B450M D53H GGABYTE
    Opensuse Tumbleweed Plasma 5

  3. #3
    Join Date
    Jan 2013
    Location
    Brazil
    Posts
    327

    Default Re: How to: Edit /etc/sysctl.conf

    Hi. Isn't the command default to any DE?

    openSUSE 12.2 64bit
    XFCE (also installed LXDE and KDE)

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,077

    Default Re: How to: Edit /etc/sysctl.conf

    On Tue, 22 Jan 2013 02:16:01 +0000, amarildojr wrote:

    > Hi. Isn't the command default to any DE?
    >
    > openSUSE 12.2 64bit XFCE (also installed LXDE and KDE)


    Try gnomesu or kdesu.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  5. #5
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How to: Edit /etc/sysctl.conf

    Quote Originally Posted by amarildojr View Post
    Hi. Isn't the command default to any DE?

    openSUSE 12.2 64bit
    XFCE (also installed LXDE and KDE)
    Try this command.

    Code:
    xdg-su -c leafpad /etc/sysctl.conf
    I am not sure if Alt-F2 works in XFCE, but you need to open a run command to type in this command. "xdg-su -c" elevates you to root, leafpad is the text file editor and of course, /etc/sysctl.conf is the file you say you want to edit.

    You may want to look at my fewrup bash script which you can use with your file manager. Just select the text file, then Open With and pick fewrup for any text or system file. If the file belongs to root, a password will be requested. User files will not be edited as root. fewrup works with all DE's that come with openSUSE.

    fewrup - File Editor With Root or User Permissions: https://forums.opensuse.org/blogs/jd...ermissions-83/

    And a system file editor for KDE and GNOME that has its own file selection menu you can find here:

    SYSEdit - System File Editor - Version 1.50: https://forums.opensuse.org/blogs/jd...rsion-1-00-60/

    Thank You,

    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  6. #6
    Join Date
    Jan 2013
    Location
    Brazil
    Posts
    327

    Default Re: How to: Edit /etc/sysctl.conf

    Quote Originally Posted by hendersj View Post
    On Tue, 22 Jan 2013 02:16:01 +0000, amarildojr wrote:

    > Hi. Isn't the command default to any DE?
    >
    > openSUSE 12.2 64bit XFCE (also installed LXDE and KDE)


    Try gnomesu or kdesu.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
    Both asked my root passwd and then nothign happened.

  7. #7
    Join Date
    Jan 2013
    Location
    Brazil
    Posts
    327

    Default Re: How to: Edit /etc/sysctl.conf

    Quote Originally Posted by jdmcdaniel3 View Post
    Try this command.

    Code:
    xdg-su -c leafpad /etc/sysctl.conf
    I am not sure if Alt-F2 works in XFCE, but you need to open a run command to type in this command. "xdg-su -c" elevates you to root, leafpad is the text file editor and of course, /etc/sysctl.conf is the file you say you want to edit.

    You may want to look at my fewrup bash script which you can use with your file manager. Just select the text file, then Open With and pick fewrup for any text or system file. If the file belongs to root, a password will be requested. User files will not be edited as root. fewrup works with all DE's that come with openSUSE.

    fewrup - File Editor With Root or User Permissions: https://forums.opensuse.org/blogs/jd...ermissions-83/

    And a system file editor for KDE and GNOME that has its own file selection menu you can find here:

    SYSEdit - System File Editor - Version 1.50: https://forums.opensuse.org/blogs/jd...rsion-1-00-60/

    Thank You,

    Alt + F2 opened Application Finder. Typed "xdg-su -c" and nothing happened. Also "xdg-su -c leafpad /etc/sysctl.conf" output this:

    xdg-su -c leafpad /etc/sysctl.conf
    xdg-su: unexpected argument '/etc/sysctl.conf'
    Try 'xdg-su --help' for more information.

  8. #8
    Join Date
    Jan 2013
    Location
    Brazil
    Posts
    327

    Default Re: How to: Edit /etc/sysctl.conf

    Is it so hard to open the file as root? =P

  9. #9
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: How to: Edit /etc/sysctl.conf

    you seem to use gedit so i believe you are on gnome.
    The following works on my GNOME 3.4.2
    Code:
    gnomesu gedit /etc/sysctl.conf
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  10. #10
    Join Date
    Jan 2013
    Location
    Brazil
    Posts
    327

    Default Re: How to: Edit /etc/sysctl.conf

    Quote Originally Posted by vazhavandan View Post
    you seem to use gedit so i believe you are on gnome.
    The following works on my GNOME 3.4.2
    Code:
    gnomesu gedit /etc/sysctl.conf
    No, sorry.

    Quote Originally Posted by amarildojr View Post
    openSUSE 12.2 64bit
    XFCE (also installed LXDE and KDE)


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
  •