LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-18-2005, 01:34 AM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Rep: Reputation: 15
Question "xhost +localhost" a no go (Ubuntu, Debian)


I have a few Debian and Ubuntu machines up, and I seem to have real problems trying to run X apps after doing an su to root, even after "xhost +localhost". The Debian machines seem to allow it if I do "su" rather than "su -", but on this particular Ubuntu Breezy machine I can't get it to work under any circumstances:


rcs@scully:~/Desktop$ xhost +localhost
localhost being added to access control list

rcs@scully:~/Desktop$ su
Password:

root@scully:/home/rcs/Desktop# sh install-crossover-pro-5.0.0.sh
Verifying archive integrity...OK
Uncompressing CrossOver Office Professional..............................................

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Setup requires an X display to run. There is a display variable set, however
you have no permissions to access the X server (:0.0) it points to.
Try running xhost +localhost before su'ing to root.


I'm sure there's a setting in some conf file someplace that I can tweak to get this to work. Can someone give me a clue?

Thanks....Bob
 
Old 12-18-2005, 07:19 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

It could be that localhost is not used but your computers FQDN/ip.

Try adding the accompanying IP or FQDN:

xhost +192.168.0.0
or
xhost +my.computer.name

You obviously need to change 192.168.0.0/FQDN into your computers IP/name.

Hope this helps.
 
Old 12-18-2005, 12:04 PM   #3
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
The correct command to use is:
Code:
xhost local:root
It works on Debian and Ubuntu the same.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
"Upgrade" Debian to Ubuntu? hario Ubuntu 1 11-26-2005 01:54 PM
"xhost +local:" in .xsession - a bad idea? umk Debian 5 06-14-2005 09:12 AM
how do I get around the "submit passwd" prompt in ubuntu even if I use "sudo"? t3gah Linux - Distributions 1 02-22-2005 04:42 PM
Please,the question with "xhost +localhost" fliny Linux - Networking 7 10-16-2003 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration