[kde-china] kde4下为什么su到root用户后无法运行图形程序?
翁学天
wengxt在gmail.com
星期一 十一月 23 09:35:58 CET 2009
Èç¹ûÊÇsu²Ù×÷µÄ»°£¬¶ø²»ÊÇsu -£¬Ó¦¸Ã»á¼Ì³Ð»·¾³±äÁ¿µÄ
ÆäʵÎÒÕâÀï¾ÍËãsu -¹ýÈ¥£¬Ò²»áµÃµ½ÒÔϽá¹û£¬²»ÖªµÀΪɶdisplayÒ²´«¹ýÈ¥ÁË¡¡¿ÉÄܺͷ¢ÐаæÓÐʲô¹Øϵ¡¡
No protocol specified
kwrite: cannot connect to X server :0
Õâ¸ö²ÅÊÇ´íÎó
²»¹ý»°Ëµ»ØÀ´£¬ÎÒÕâÀïµ¹ÊÇÎÞÂÛkde£¬gtk³ÌÐò¶¼²»ÄÜÔËÐУ¬´íÎóÏàͬ£¬Í¼ÐνçÃ涼Ҫ¿¿kdesu
2009/11/23 vvoody <wxj.g.sh在gmail.com>
> ²»¶Ô°¢£¬ÆÕͨÓû§su -Ö®ºóroot¶¼²»ÄÜÔËÐÐX³ÌÐò(ÎÞÂÛgtk¡¢kde)°¢£¬ÒòΪDISPLAYûÉèÖ𢣬»áÌáʾ£º
> root在slackware:~# xeyes
> Error: Can't open display:
>
> »ò
> root在slackware:~# firefox
> Error: no display specified
>
> rootµÃexport DISPLAY=:0.0£¬ÆÕͨÓû§xhost +ºóroot²ÅÄÜÔËÐÐX³ÌÐò¡£lz suºóÄÜÔËÐÐX³ÌÐòÊÇʲôÇé¿ö£¿
>
> 2009/11/22 Grissiom <chaos.proton在gmail.com>:
> > 2009/11/22 Liu Guibin <goodluck.liu在gmail.com>
> >>
> >> ¹À¼ÆÊÇkde4µÄ³ÌÐòÖÐ×öÁËijÖÖÏÞÖÆ
> >> ÏÞÖÆÆÕͨµÄ su À´Ö´ÐÐ
> >> ÖÁÓÚÈçºÎÏÞÖƵģ¬ÄǾͲ»Çå³þÁË
> >>
> >>
> >
> > ¹Ø¼üÊÇʲôÏÞÖÆÒÔ¼°ÎªÊ²Ã´ÏÞÖÆ¡£ÒÔÇ°ÎÒÈÏΪÊÇÇл»µ½ÁíÒ»¸öÓû§ÏÂÖ®ºó»áÕÒ²»µ½ÏÔ¿¨£¬²»¹ý¼ÈÈ» gtk ºÍ kde3 ¿ÉÒÔ£¬ÄÇô´ó¸Å¾Í²»ÊÇÕâ¸öÎÊÌâÁË¡¡
> > »¹ÊÇÆÚÍû´óÅ£À´½âÊÍһϡ«¡«ºÙºÙ¡¡
> >
> > --
> > Cheers,
> > Grissiom
> >
> > _______________________________________________
> > kde-china mailing list
> > kde-china在kde.org
> > https://mail.kde.org/mailman/listinfo/kde-china
> >
> >
>
>
>
> --
> Free as freedom, slack as Slackware.
> vvoody
> _______________________________________________
> kde-china mailing list
> kde-china在kde.org
> https://mail.kde.org/mailman/listinfo/kde-china
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://mail.kde.org/pipermail/kde-china/attachments/20091123/541eabed/attachment.htm
关于邮件列表 kde-china 的更多信息