Xlib: connection to ":0.0" refused by server
I am running SuSE v9.2 FTP DVD version.
Quote:
I would be very grateful if I could receive your favorable reply. Thanks!! |
either use 'sux -' instead of 'su' or enter 'xhost +localhost'
|
As normal user, you can run:
Code:
xhost local:root Code:
export XAUTHORITY=/home/name/.Xauthority |
Thanks very much for you guys kind help!!!
|
I don't have /root/.bashrc (nor /home/root/.bashrc). I'm using Debian etch. What could I do?
|
Are you looking as root user? First "su" to become root. Try this:
Code:
su |
I'm sure.
code: $su #cd /root #ls .bashrc ls: .bashrc: Arquivo ou diretório não encontrado The fouth line means: "File or directory not found". Thanks for the trying. |
Install sux like rshaw said a year ago
|
Sux is already installed.
Code:
#apt-get install sux And when I try: Code:
# xhost +localhost Code:
Xlib: connection to ":0.0" refused by server Code:
$ xhost +localhost Code:
cp /home/jcconegundes/.Xauthority /home/root |
I added
Code:
export XAUTHORITY=/home/regular_user/.Xauthority That was not a clean work, I think. Any better sugestion? |
Quote:
|
Quote:
In /etc/profile i do have a line with: export XAUTHORITY=/home/name/.Xauthority[/CODE] but when i run konqeror as root (and is runned by clicking in the konquerorsu icon in kmenu), when double clicking in a text file, i get this error: KDEInit cant launch 'kwrite'. So i continue to have to run in a console "xhost local:root". How am i gona solve this permanently? Add "export XAUTHORITY=/home/name/.Xauthority" to /etc/etc/rc.d/rc.local ? Isnt there a better solution? |
Partly Worked
Quote:
but only the command part worked for me. I have to issue the command every time I start thunderbird. |
Even simpler:
Link to the current correct cookie $ su - type your password # ln -s /home/user/.Xauthority |
Quote:
You can create it with just that one line that was suggested for this problem: Code:
export XAUTHORITY=/home/name/.Xauthority This means you, as the administrator of your computer, get to decide what all goes in them. Typically, users would decide what goes in their own $HOME/.bashrc and $HOME/.bash_profile - most likely that is also you. My main point is that they are there for your convenience, rather than being some untouchable and necessarily mysterious file of the "us mortals shall not touch" category. This link explains more clearly the difference between these different files: http://www.linuxquestions.org/questi...bashrc-273992/ Note: $HOME refers to your home directory, for example it might be /home/kiel2155/.bashrc Hope this helps. Fitzhugh |
All times are GMT -5. The time now is 04:47 PM. |