Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I log in as normal user and when i launch a software that requires gtk i get this error:
gabriele@gabrix:~$ sudo synaptic
(synaptic:6885): Gtk-WARNING **: cannot open display:
Does anyone guess why?
I never see that, however, could it be that user root has no permissions to use your X server? If so, in a terminal, as the user: xhost +localhost. This permits any 127.0.0.1 user your X server.
I log in as normal user and when i launch a software that requires gtk i get this error:
gabriele@gabrix:~$ sudo synaptic
(synaptic:6885): Gtk-WARNING **: cannot open display:
Does anyone guess why?
Not positive it will work for sudo but when using su to go to root in a console window I have this in my /root/.bashrc.
Code:
## allows me to run X program as root
export XAUTHORITY=/home/stephen/.Xauthority
So it could be worth a try you of course would change to your /home/user_name.
I ended up formatting my machine and the news are that at the first boot it showed this message:
There was an error starting up the screensaver:
Failed to execute child process "xscreensaver" (No such file or directory)
Screensaver functionality will not work in this session.
Error activating XKB configuration.
Probably internal X server problem.
X server version data:
The XFree86 Project, Inc
40300001
You are using XFree 4.3.0.
There are known problems with complex XKB configurations.
Try using simpler configuration or taking more fresh version of XFree software.
If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb ??? where this path comes from?
Anyway now i have
gabrix:~# echo $DISPLAY
:0.0
What does this all means??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.