Find the answer to your Linux question:
Results 1 to 6 of 6
I can't seem to launch Gedit with su - files with Debian Etch, However the same commands can open with Fedora Core 5, Any input?...
  1. #1
    fvs
    fvs is offline
    Linux Newbie
    Join Date
    May 2005
    Location
    Scranton, Pa
    Posts
    166

    Unhappy Gedit

    I can't seem to launch Gedit with su - files with Debian Etch, However the same commands can open with Fedora Core 5, Any input?

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Hrm?
    Do you mean launch Gedit with root priveleges from the command line? I don't get what you mean by "su - files." What commands are you referring to, that can open with FC5?
    Stand up and be counted as a Linux user!

  3. #3
    fvs
    fvs is offline
    Linux Newbie
    Join Date
    May 2005
    Location
    Scranton, Pa
    Posts
    166
    Quote Originally Posted by Zelmo
    Hrm?
    Do you mean launch Gedit with root priveleges from the command line? I don't get what you mean by "su - files." What commands are you referring to, that can open with FC5?
    Yep, Gedit with root priveleges from the command line, It works in Fedora Core 5 as root. Thanks.fvs

  4. #4
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Are you getting an error about an X server not being available, or could not open display? If so, the root user just doesn't have access to the X server that you're running as a normal user. There's a $DISPLAY setting (or something like that) you can mess with every time you want to give root access to the X server, or you can apt-get install sux, and then use sux instead of su.
    Stand up and be counted as a Linux user!

  5. #5
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    you might also try
    Code:
    su -c gedit
    or
    Code:
    gnomesu gedit
    Brilliant Mediocrity - Making Failure Look Good

  6. #6
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401
    Code:
    xhost +
    This will permit to root user to connect with Xserver.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

Posting Permissions

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