LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-22-2006, 12:19 PM   #1
patolfo
Member
 
Registered: Jan 2006
Distribution: Debian-Sarge r2-k.2.6.8-2.386
Posts: 101
Blog Entries: 1

Rep: Reputation: 15
root cannot run x apps from konsole


well I'm a newbie, and I installed sarge on my pc, with kernel 2.6.8
when in user mode I can run every x apps bu twhen in root from konsole can not run even kwrite
this is the error:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0.0

well there is one error but don't know where to search.
 
Old 08-22-2006, 12:28 PM   #2
BiThian
Member
 
Registered: Aug 2006
Location: Romania
Distribution: NetBSD 3.1
Posts: 118

Rep: Reputation: 15
Check for the Similar Threads (down on the page)
 
0 members found this post helpful.
Old 08-22-2006, 12:36 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,918

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by patolfo
well I'm a newbie, and I installed sarge on my pc, with kernel 2.6.8
when in user mode I can run every x apps bu twhen in root from konsole can not run even kwrite
this is the error:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0.0

well there is one error but don't know where to search.
Put the following in your /root/.bashrc this assumes you are using su in a Konsole window as your normal user to become root then running the program from that command line, change it to your username.

Code:
## allows me to run X program as root

export XAUTHORITY=/home/stephen/.Xauthority
 
Old 08-23-2006, 09:25 AM   #4
mhowell
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Rep: Reputation: 15
another way is to install sux, this works by instead of running su in the konsole you run 'sux root program to run' and enter the root password. this is how i do it.
 
Old 08-23-2006, 09:40 AM   #5
patolfo
Member
 
Registered: Jan 2006
Distribution: Debian-Sarge r2-k.2.6.8-2.386
Posts: 101

Original Poster
Blog Entries: 1

Rep: Reputation: 15
thanks a bunch guys... both methods worked!!!!!

In fact I did the first one then I opened kpackage and installed sux... and now I can use sux or su, thanks....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SuSE 10, KDE 3.4: OpenGL apps only work when run as root pschoenb Linux - Software 1 11-10-2005 01:43 PM
Can't run X apps as root michaely Debian 13 07-18-2004 04:47 AM
running apps from a konsole without it being dependent DropSig Linux - Newbie 4 06-07-2004 05:53 PM
Using root in X, how to run apps as a usr ? Dark Carnival Linux - Security 6 05-25-2004 03:06 PM
How do i get into root from konsole? AngelLucifer Linux - Newbie 7 11-01-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:06 AM.

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