Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot connect to X server :0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
d0minus
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2005
Posts: 90
Location: Ukraine

PostPosted: Thu Oct 06, 2005 10:52 am    Post subject: Cannot connect to X server :0 Reply with quote

Всем привет
Как зделать чтобы прога(GNU interface) стартовала с правами root'a для обычного user'a?
Я зделал rc script и она стартует до логина. Но почемуто она неможет подключитса к X server

Code:
su -c "DISPLAY=:0 nice -n -5 /usr/bin/kphone > /dev/null &";


Но он неработает
Code:
Xlib: connection to ":0.0" refused by server
Xlib: invalid MIT-MAGIC-COOKIE-1 key
kphone: Cannot connect to X server :0


Проблема скорее всего в файле .Xauthority.
у меня gentoo 2005.1 2.6 X.org KDE 3.4

Подскажыте что делать плз !!


Last edited by d0minus on Thu Oct 06, 2005 11:52 am; edited 2 times in total
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Thu Oct 06, 2005 11:30 am    Post subject: Reply with quote

запускай через sudo
Back to top
View user's profile Send private message
d0minus
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2005
Posts: 90
Location: Ukraine

PostPosted: Thu Oct 06, 2005 12:35 pm    Post subject: Reply with quote

В каком файле в Gentoo передаютса параметри Х серверу, если я запускаю его через xdm ?
Back to top
View user's profile Send private message
|cub|
n00b
n00b


Joined: 12 Feb 2005
Posts: 59
Location: UA

PostPosted: Sun Oct 09, 2005 9:58 am    Post subject: Reply with quote

d0minus wrote:
В каком файле в Gentoo передаютса параметри Х серверу, если я запускаю его через xdm ?

man xdm ?
man xdm wrote:
CONFIGURATION FILE
First, the xdm configuration file should be set up. Make a directory
(usually /usr/X11R6/lib/X11/xdm) to contain all of the relevant files.

Here is a reasonable configuration file, which could be named xdm-con-
fig:


DisplayManager.servers: /usr/X11R6/lib/X11/xdm/Xservers
DisplayManager.errorLogFile: /var/log/xdm.log
DisplayManager*resources: /usr/X11R6/lib/X11/xdm/Xresources
DisplayManager*startup: /usr/X11R6/lib/X11/xdm/Xstartup
DisplayManager*session: /usr/X11R6/lib/X11/xdm/Xsession
DisplayManager.pidFile: /usr/X11R6/lib/X11/xdm/xdm-pid
DisplayManager._0.authorize: true
DisplayManager*authorize: false


Note that this file mostly contains references to other files. Note
also that some of the resources are specified with ``*'' separating the
components. These resources can be made unique for each different dis-
play, by replacing the ``*'' with the display-name, but normally this
is not very useful. See the Resources section for a complete discus-
sion.
Back to top
View user's profile Send private message
rusxakep
Guru
Guru


Joined: 09 Jul 2004
Posts: 458

PostPosted: Mon Oct 10, 2005 6:04 am    Post subject: Reply with quote

или сделай xhost +
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum