View previous topic :: View next topic |
Author |
Message |
d0minus Tux's lil' helper
Joined: 25 Apr 2005 Posts: 90 Location: Ukraine
|
Posted: Thu Oct 06, 2005 10:52 am Post subject: Cannot connect to X server :0 |
|
|
Всем привет
Как зделать чтобы прога(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 |
|
|
ba l33t
Joined: 25 May 2003 Posts: 804
|
Posted: Thu Oct 06, 2005 11:30 am Post subject: |
|
|
запускай через sudo |
|
Back to top |
|
|
d0minus Tux's lil' helper
Joined: 25 Apr 2005 Posts: 90 Location: Ukraine
|
Posted: Thu Oct 06, 2005 12:35 pm Post subject: |
|
|
В каком файле в Gentoo передаютса параметри Х серверу, если я запускаю его через xdm ? |
|
Back to top |
|
|
|cub| n00b
Joined: 12 Feb 2005 Posts: 59 Location: UA
|
Posted: Sun Oct 09, 2005 9:58 am Post subject: |
|
|
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 |
|
|
rusxakep Guru
Joined: 09 Jul 2004 Posts: 458
|
Posted: Mon Oct 10, 2005 6:04 am Post subject: |
|
|
или сделай xhost + |
|
Back to top |
|
|
|