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 02-16-2006, 02:37 AM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
chroot not able to open display


sc@ubuntu:~$ dchroot -d xclock
(breezy) xclock
dchroot: chdir: No such file or directory
Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0
dchroot: Child exited non-zero.
dchroot: Operation failed.

why? I have installed the xbase libraries. but it still wont work. sc is a normal user. Basically what am trying to link my chroot to my 64bit xserver so that i can run anjuta along with sdl and other 32bit apps.
 
Old 02-17-2006, 07:43 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
2 solutions:
1) You want to have a different home directory : 1 in the chroot and one in the real /. Then you need to copy Xauthority
Code:
cp /home/user/.Xauthority /chroot/home/user
2) You want to share the same home directory between the chroot and the real /. Then add this to the "real" /etc/fstab (not in the chroot)
Code:
/home           /chroot/home    none    rbind           0
But all the links in /home that points to something in the real / will be broken
 
  


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
cant open display within 32bit sarge chroot linuxmandrake Debian 2 12-17-2005 10:59 AM
Cannot open display ::eboye:: SUSE / openSUSE 2 11-19-2005 07:45 AM
setting display after chroot darthczyz Linux - Newbie 2 04-05-2004 10:27 AM
Cannot open Display ferreter Linux - General 1 08-17-2003 04:23 PM
Cannot Open Display Apocalypse Linux - General 9 10-16-2002 06:59 PM

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

All times are GMT -5. The time now is 07:27 PM.

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