Why Can't I Install Software As Root?

free web hosting
Free Web Hosting > Computers & Tech > Operating Systems > Linux

Why Can't I Install Software As Root?

jedipi
When I become root with "su -" and try to install some software, such as firefox,
it then says:"(firefox-installer-bin:3645): Gtk-WARNING **: cannot open display:"

What's the meaning of this information?
And how can I deal with it?
Thanks!

Reply

jipman
Thats a harmless warning, it happens all the time to me, but the software will continue run (installer or whatever).

Reply

Giniu
Hi...

this is becouse display :0.0 is used by another user and when you try to run it as root (by su) you violate the security, since it work like you want to run it from another computer... first you must know what display you use (usualy :0.0, but who knows...) as normal user (without su, just like that), do:
CODE
echo $DISPLAY
, then you should add your host (again as usual user), do:
CODE
xhost +localhost
and you should see something like:
CODE
localhost being added to access control list
then switch user (do su smile.gif ) and export display (take value that gives you echo... do
CODE
export DISPLAY=:0.0
if it was :0.0.

that should make the case, hope this helped smile.gif

PS.: Yes, I think it will continiue to run it it is console aplication, but as I remember firefox also got gtk graphic based installer, and there you must get access to display it...

 

 

 


Reply

qwijibow
aslong as you firewall tcp port 6000 (and 6001 + if you are running more than one X server)
there is no ecurety risk from disableing this securety feature by deafualt, many distro's like redhat / fedora do.

Reply

FirefoxRocks
Why don't you just go to wherever X is running (in most cases it is accessed by pressing Ctrl+Alt+F8, if that doesn't work, try that with F7, F9 and so on) and log in as root there?

In GNOME or KDE, you can log out as your normal user and log in as root. Or you can open up a terminal there and use sudo to access your installation file.

Reply

wutske
QUOTE(FirefoxRocks @ Sep 17 2008, 06:24 AM) *
Why don't you just go to wherever X is running (in most cases it is accessed by pressing Ctrl+Alt+F8, if that doesn't work, try that with F7, F9 and so on) and log in as root there?

In GNOME or KDE, you can log out as your normal user and log in as root. Or you can open up a terminal there and use sudo to access your installation file.


Maybe he's logged in as a normal users under X and is he trying to install something by launching it as root via a terminal ?

Reply

FirefoxRocks
Oh well in that case, just log out as normal user and log in as root on the X server.

Reply

xboxrulz
Just simply use sudo to do the action. Sometimes doing su on some distributions limit you purposefully or try right clicking the file on your file manager and type kdesu sh and press OK. It will launch a password window and let you run the application as root. In GNOME, it should be the same but replace kdesu with gnomesu.

xboxrulz

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. kde 4 "add/remove software" root - 45.90 hr back. (1)
  2. cannot install software as root - 179.09 hr back. (1)
  3. fc9 cant install software as root - 294.94 hr back. (1)
  4. cannot install software vmware - 435.04 hr back. (1)
  5. i dont have acces on my directory cant install programs - 579.65 hr back. (1)
Similar Topics

Keywords : install, software, root

  1. Linux Software Installation Help
    it tells how to install software in tar.bz2 or .bin extension (2)
  2. Ubuntu- How To Install C/ C++ Compilers.
    (3)
    Once you install Ubuntu. If you want to develop code in C or C++ you need to update the package.
    Default install will not come with development tools. Synaptic pckg manager is a very usefull
    tool in ubuntu. This can be used to install many development tool. Just look for Synaptic pckg
    manager and put check for gcc 3.4 or later, glibc or any other package you need, then update.
    Your ubuntu is now ready to use for C,C++.... /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> ....
  3. Strange Error When Trying To Install Fedora Core 9
    (6)
    Hi all, I tried to install Fedora Core 9 in a VmWare virtual machine under WinXP. I downloaded the
    DVD ISO image and proceeded with the installation. When the process was started since about a
    minute, the following error did show: "The file evince-2.22.1.1-1.fc9.i386.rpm cannot be opened.
    This is due to a missing file, a corrupt package or corrupt media" Fine, I told to myself,
    let's download the ISO image again, this time from a different server, just in case. No joy,
    same error. Tried another couple of times, each one using a different server for the download. Sa....
  4. Linux For Beginners- Easy To Install
    (16)
    Which Linux distru is for beginners and Easy to install?....
  5. How To Install Linux Without A CD or DVD?
    Would like to learn how to use Linux but don't know how to install (11)
    Hey! I've tryed to install linux without a cd (as they said on the website).. But I did'nt
    understand it so good =/ Can anyone please tell me how I can install linux without a CD? Any
    version.. The only thing I need is a fast one (faster than windows).. I am completly new (never
    tried it before) and would want to learn Linux. But thats not easy, if I don't know hoiw to
    install it /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Thanks
    //Feelay....
  6. Virtualization In Linux: A Review Of Four Software Choices
    (4)
    Virtualization is the technique of running a "guest" operating system inside an already-running OS;
    for example, Windows inside Linux, or vice-versa. This article compares four virtualization products
    available for Ubuntu Linux: the free, open source Qemu; the closed-but-free versions of VirtualBox
    and VMware-Server, and the commercial Parallels.
    http://www.techthrob.com/tech/linux_virtualization.php _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  7. Mysql Build/install Problems
    (4)
    Hi I recently downloaded the mysql source for Linux. I downloaded it from packages.ubuntu.com (my
    version of linux is Ubuntu 7.10 (Gutsy Gibbon). here are my problems Installing Mysql: This is the
    command I use to configure: ./configure --prefix=/usr/local/mysql
    --with-named-curses-libs=/usr/lib/ncurses.a (the --with-named-curses-libs=/usr/lib/ncurses.a is to
    fix a bug that occurs when installing on Ubuntu) And this is the error I get: Does anyone know
    how to fix this? I've looked it up, but I can't find the answer anywhere.....
  8. Looking For Linux
    2 choices that I will choose - make it easy to install and MAINTAIN (34)
    Ok I have tried Linux before, it was ok, until something with the kernel screwed up and it left me
    with a command line interface that I didn't know what to do. I am looking for 2 different
    distributions of Linux here, my first one is for: (Currently running Windows XP SP2) A computer
    with 512 MB RAM Pentium 4 processor Internet Access GNOME or KDE desktop, doesn't matter Minimal
    command line work!!! Absolutely no command line work when installing. I have tried Ubuntu, it was
    easy enough. Anything easier than Ubuntu and I'll give it a try. My second cho....
  9. Beginner's Guide To Installing Software In Ubuntu
    (2)
    Having problems installing something on your new Ubuntu operating system? This guide will help you
    understand. http://cutlersoftware.com/ubuntuinstall/ _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  10. Help Create A Program To Automatically Install Wireless Drivers On Linux
    (1)
    Some of our fellow Ubuntu users are putting together software to automatically detect and install
    wireless drivers for a variety of wireless cards and they need our help. If your wireless connection
    is working, please run the command and post the result on the Ubuntu forums thread linked to below.
    This is the only deterrent to Linux on many laptops.
    http://ubuntuforums.org/showthread.php?t=547444 This was never actually meant to be a Ubuntu
    thing. It doesn't matter which distribution you're using; running that command and posting
    the output would be a great h....
  11. Fedora Core 6 Install Problem
    (6)
    I have tried three times to get Fedora Core 6 to install but I keep getting the same error message:
    “there was an error running your transaction, for the following reason(s): file conflicts”. I am
    using all of the default settings except changing the time zone and basically installing all
    packages. The error always happens near the end of the fifth disk. I have run sha hash checking on
    all media and everything checks out. Has anyone had this problem or a possible solution?....
  12. Installing Mysql (fc5)
    yum install mysql (3)
    I'm having a problem with my Fedora Core 5 server. I need to install MySQL but it won't. I
    keep running the command under root: yum install mysql which should install all the clients but it
    won't. It gives me this: CODE # yum install mysql Loading "installonlyn" plugin Setting up
    Install Process Setting up repositories
    core                                                                
    updates                                                              
    extras                                                               Reading repository metad....
  13. Knoppix!
    Boot linux off of a cd with all software included wothout touching you (3)
    QUOTE Knoppix is a Free and Open Source Live Linux CD based on Debian GNU/Linux. Live Linux CD
    means that the computer boots and runs completely from cd. Nothing is installed on your hard drive
    in order for you to experience many of the Open Source software packages available. Knoppix
    includes recent Linux software and desktop environments, including such applications as
    OpenOffice.org, Abiword, Gimp, Konqueror, Firefox, Apache, PHP, MySQL and hundreds of other quality
    open source programs. You can dwoload it free from there website or i think you can buy a dv....
  14. How Do You Install Fonts Under Gnome 2.14.0
    Gnome 2.14.0 (3)
    I've copied my truetype fonts from windows for use on my linux system. I've been searching
    and tried a few things with no luck. thanks for any help! F....
  15. Fix Fedora 5 Add/Remove Software Problem
    fix the problem that cannot add/remove software without Internet conne (2)
    The add/remove software in Fedora 5 just does not work if you machine is not connected to the
    Internet. It wont add or remove any package for you even though you have the disks. If you read
    files in /etc/yum.repos.d/, you will understand. Fedora 5 will connect to redhat's website when
    you want to update your Fedora. Here is a simple way to update your fedora 5 via FC5 iso file. 1,
    move all files, which are under /etc/yum.repos.d directory, to other directory. for example, backup
    directory. 2. create a new directory *.reop in /etc/dym.repos.d Copy and Paste the ....
  16. Suse 10.0 Won't Install?
    (17)
    I don't get this... I've downloaded the 5 (?) CD set of SuSE 10. It installs PERFECTLY
    however, the last step, the hardware thing (I forget what it is called), it quits on it and
    won't boot SuSE, it goes DIRECTLY into YaST and it's an endless loop... anyone else have
    similar install problems? Thanks! F....
  17. How To Install Applications In Fedora
    noob question (12)
    I'm a linux user since a few days, i've decided to change to linux coz i'm not very
    pleased with Windows versions . So i wonder how do i install aplications like Files Sharing and mp3
    ?....
  18. Windows Software On Linux
    What do you use? (13)
    I tried Wine once but couldn't get it to run anything, as some of you may have read on other
    topics I'm setting up a desktop to be a Linux workstation. But I was thinking I might want to
    run some PC games on this desktop. What do you recommend?....
  19. Ubuntu Install Cd - Xp Crash When Browsing Cd
    what happened? (8)
    i downlaoded the ubuntu install cd the other day and tried to burn the image to cd using nero. i was
    using a cd-rw and i both finalise and didnt finalise and both times the cd was not booted from and
    when i looked at the contents xp just crashed. what happened - any ideas. also i has a broken
    gentoo/98 dual boot with grub on the 3rd partition. i reformated the 3rd partition forgetting about
    grub becasue unbuntu is going on (networkless) and now grub is messed up. can i reinstall grub off
    the gentoo install cd? if so what base commands do i need. thanks very much in adv....
  20. Minor Knoppix Problems
    will they stay in a proper install (6)
    there are the occational problem that i have on knoppix that i would like to know if i will have
    them when i install linux. i.e. file format issues - especially music files .wma? dvd player wont
    play one of my dvd's some of the programs on the menu dont start when i click on them gaim wont
    work just wondering ....
  21. Install Linux Without Format Or Partitioning
    (6)
    Would you like to try Linux Operatin System without Installing it or Formatting the computer? Well,
    YOU CAN! Linux is now available to run on disc straight from the CD without installing on the
    computer. Download the disc 100% LEGAL Have fun /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> ....
  22. Install Jdk1.5.0 Under Fedora Core 4
    Share my experience (5)
    Install jdk1.5.0 under Fedora core 4 I used to use JDK1.4.2. However JDK 1.5.0 was released long
    time ago. Today, I got it updated. Here are the steps for newbies: 1. Download Jdk1.5.0. This is a
    must /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> . Everone know where
    to get it. anyway, here is the address: http://java.sun.com/j2se/1.5.0/download.jsp The newest
    version is JDK 5.0 Update 4. you can choose Linux self-extracting file or Linux RPM in
    self-extracting file. For me, I use Linux self-extracting file (jdk-1_5_0_04-linux-i586.bin) ....
  23. Ubuntu! Install
    My weekend project (5)
    Well this weekend I decided to skip mini distrabutions and go for another larger install, I still
    dont really want to install Debian or Fedora Core, so I decided this time I'd look at the
    screenshots and see what my cup of tea was. So first thing was first, boot into Puppy and backup my
    personal stuff, so on goes my old PC and it boots perfectly as normal, up until it comes to starting
    the window manger (X), it doesnt load, so I type "xwin" and it doesnt start, it just says to xwin if
    I want to restart the interface. So at that point, I really cant be bothered, so ....
  24. Gentoo Install Help
    emerging packages (9)
    hi linux users i've now got a stable gentoo base but i cant seem to install any packages. this
    is on a differnet not internet computer to this one. i have installed quite an old version (kernel
    2.4) 2004.3 but i have the 2005 packages cd. i looked at the online gentoo install handbook 2005 but
    it has the same instructions as the 2004.3 handbook. when is try to emerge the packages the computer
    tried to go online to find the packages instead of going to the cd and looking there. obviously no
    internet makes it fail. it is a p3 so 86x structure. that may not be enough....
  25. How Can I Install A Raid Card In Debian?
    (1)
    My machine is Pentium 4 2.8C, plus a Ggigabyte 865g mother board. Debian sarge is installed in this
    PC. Lilo is used as the boot loader. This system does runs fine. I just bought a Promise fasttrak
    s150 tx2+ PCI card and two 160g Hitachi DeskStar 7k250. This two new Hard Disks are for backing up
    the data. After the hardwares are installed, I get into the raid card's bios and created a raid
    1. Then reboot system. Lilo menu is shown. after press enter, system is held at "bios check". If
    the two new hitachi hard disk is not attched, Debian can run just fine. What doe....
  26. Debian Net-install
    a little help? (3)
    Okay, I decided to give debian a try, just out of the blue, but I decided to try a net-install.. So,
    how exactly do I go about putting together my "custom distro" from the net-install process? Is this
    all just stuff I do from the console or what?....
  27. Fedora Core 3 Install/upgrade
    issues? (3)
    I'm currently using Fedora Core 2, which is workin great for me. But when I try to install
    Fedora Core 3 from my CD, it goes nuts on me everytime as soon as the GUI portion of the install
    starts up. I've tried installing it in text mode, but once I try to boot it stops there too. Am
    I using bad media or what?....
  28. Help ! Can't Install Rpm File
    (2)
    I just installed redhat 9. and try to install some software. I use the following comman to do so:
    rpm -ivh file.rpm After I press Enter key, error message was shown: "can't create transaction
    lock" what should i do?....
  29. Linux Users: The Best Linux Software?
    (15)
    Ok linux users. Which software packages, in your mind, are the best/most necessary for a good linux
    system. In particular, which OSS application software do you like the most?....

    1. Looking for install, software, root






*SIMILAR VIDEOS*
Searching Video's for install, software, root
Similar
Linux Software Installation Help - it tells how to install software in tar.bz2 or .bin extension
Ubuntu- How To Install C/ C++ Compilers.
Strange Error When Trying To Install Fedora Core 9
Linux For Beginners- Easy To Install
How To Install Linux Without A CD or DVD? - Would like to learn how to use Linux but don't know how to install
Virtualization In Linux: A Review Of Four Software Choices
Mysql Build/install Problems
Looking For Linux - 2 choices that I will choose - make it easy to install and MAINTAIN
Beginner's Guide To Installing Software In Ubuntu
Help Create A Program To Automatically Install Wireless Drivers On Linux
Fedora Core 6 Install Problem
Installing Mysql (fc5) - yum install mysql
Knoppix! - Boot linux off of a cd with all software included wothout touching you
How Do You Install Fonts Under Gnome 2.14.0 - Gnome 2.14.0
Fix Fedora 5 Add/Remove Software Problem - fix the problem that cannot add/remove software without Internet conne
Suse 10.0 Won't Install?
How To Install Applications In Fedora - noob question
Windows Software On Linux - What do you use?
Ubuntu Install Cd - Xp Crash When Browsing Cd - what happened?
Minor Knoppix Problems - will they stay in a proper install
Install Linux Without Format Or Partitioning
Install Jdk1.5.0 Under Fedora Core 4 - Share my experience
Ubuntu! Install - My weekend project
Gentoo Install Help - emerging packages
How Can I Install A Raid Card In Debian?
Debian Net-install - a little help?
Fedora Core 3 Install/upgrade - issues?
Help ! Can't Install Rpm File
Linux Users: The Best Linux Software?
advertisement




Why Can't I Install Software As Root?