LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2007, 12:43 AM   #1
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Rep: Reputation: 15
Question unable to open pdf documents from root.....


hi all,
im unable to open pdf documents,(with pdf viewer,kghostview ,kpdf)from root but im able to do so as a user,(just like mozilla post),is there any way to open the document,i think all this is because of shutting down system without closing the applications that were currently running in root......so is there any way to make all of them working???EARLIER THEY WERE ALL WORKING......how could i correct this??

Last edited by majji.hari; 12-17-2007 at 09:49 AM.
 
Old 12-17-2007, 12:45 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Dude, don't use GUI apps as root. It's a bad practice, and it'll bite you sooner or later.

But, if you insist, you can. Since you gave no hint, I presume it's about access control. So, when you login, type this in your terminal:

xhost +

All access control on your screen will be disabled, and root will be able to open windows. And everyone else on the Internet, as a matter of fact So, you'd want to do this:

xhost +localhost

Once you've done, just drop:

xhost

And things will be controled again.
 
Old 12-18-2007, 06:07 AM   #3
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Post

after trying what u have mentioned i got the following error
(gpdf:5284): Bonobo-WARNING **:Activation exception 'child process did not give an error message,unknown failure occured'.....
what to do now.....
 
Old 12-18-2007, 06:10 AM   #4
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
its status....

when im trying to open pdf from console or directly by clicking it im getting a plain window(of page size) on screen with no page on it....it is standing still until closed....
 
Old 12-18-2007, 09:39 AM   #5
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Can you open it as a regular user? Post here everything that appears in your terminal after:

xpdf some.pdf
 
Old 12-18-2007, 10:21 AM   #6
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
the exact sequence.....

yes i agree with ur suggestion for use of GNU in root im able to open pdfs by a click or in console with ease as general user.

the actual error msg in console
-----------------------------------------------------------
[root@localhost ~]# xhost +localhost
localhost being added to access control list
[root@localhost ~]# gpdf gan2.pdf

(gpdf:3584): Bonobo-WARNING **: Activation exception 'Child process did not give an error message, unknown failure occurred'

Last edited by majji.hari; 12-18-2007 at 10:23 AM.
 
Old 12-18-2007, 10:34 AM   #7
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
I think you can't open anything by clicking its name in console...

And, execute xhost command as a user who started X server, not root.

As last resort, try xpdf or evince instead of gpdf.
 
Old 12-18-2007, 10:40 AM   #8
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
when im trying xpdf it is showing error command not found or smth.
 
Old 12-18-2007, 12:33 PM   #9
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Ok, you've just made me install gpdf, so I could see what's going on

It fire's up just fine. Well, it seems to me that you have some deeper issues here. Try to uninstall gpdf and install it again, maybe you've killed some dependecies for it. Or install xpdf.
 
Old 12-18-2007, 05:53 PM   #10
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
It probably has something to do with pathing. If you are su'ing to root then you are probably not getting everything set properly. try su -l and see if that fixes the issue.
 
Old 12-19-2007, 01:03 AM   #11
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
no getting the same error with that also...
 
Old 12-19-2007, 01:40 AM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Excellent. The system is trying really hard to tell you NOT
TO USE IT AS ROOT. Listen to it. It's quite right.



Cheers,
Tink
 
Old 12-19-2007, 04:52 AM   #13
majji.hari
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
im ready to listen to them and accept ...but let me recover from this shock!!
 
Old 12-19-2007, 07:05 AM   #14
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Don't percieve it as shock.

You can easily kill your system with high-level tools when using them as root, and that would be a shock. So, take this as an advice from your computer
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open PDF on Suse Linux? suse2166 Linux - Newbie 5 12-07-2005 07:21 AM
Nautilus: Unable to open documents with Acroread guarriman Linux - General 2 12-10-2004 03:03 AM
searching content of pdf documents bran Linux - Software 3 10-08-2004 07:35 AM
Unable to open PDF document !! majalee Linux - Software 5 08-03-2004 12:44 PM
converting documents to pdf Chijtska Linux - General 5 02-05-2002 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration