You are not logged in.

#1 2008-04-27 18:21:37

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

chroot problem [SOLVED]

In order to watch flash files etc., I used the HowTo "Arch64 Install bundled 32bit system" to set up a chroot environment. I followed the instructions, but when I got to this portion:

"Now chroot in your new system

/etc/rc.d/arch32 start
xhost +local:
chroot /opt/arch32"

I get this error message when issuing "xhost /opt/arch32":
"No protocol specified. Cannot open display:  :0.0"

I issued the above as three separate commands - the first and last seemed to exit correctly...
I get the same error message when using dchroot.

What am I missing?

Last edited by whaler (2008-04-29 15:28:47)

Offline

#2 2008-04-27 20:44:28

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: chroot problem [SOLVED]

I'm confused, are you issuing

xhost +local:

Or are you using

xhost /opt/arch32:

The first command is what you should be issuing.

Offline

#3 2008-04-27 20:56:19

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: chroot problem [SOLVED]

Aaron wrote:

I'm confused, are you issuing

xhost +local:

Or are you using

xhost /opt/arch32:

The first command is what you should be issuing.

Sorry, I meant to say that I was issuing "xhost +local:".

The way I read the HowTo is that I should issue all these three commands

/etc/rc.d/arch32 start
xhost +local:
chroot /opt/arch32"

successively. This is during the setup of the chroot evironment, i.e. before a later reboot of the system. However, I get the same error message when trying to use dchroot after a reboot.

I am wondering what protocol I am missing and how to set it to be used.

I am totally out of my water here...

Last edited by whaler (2008-04-27 21:07:13)

Offline

#4 2008-04-28 00:03:54

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Re: chroot problem [SOLVED]

xhost works only from a X terminal, or a X-configured (setting display) tty, as it sets connection permissions on the server.

Offline

#5 2008-04-28 00:28:46

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: chroot problem [SOLVED]

Phrodo_00 wrote:

xhost works only from a X terminal, or a X-configured (setting display) tty, as it sets connection permissions on the server.

Well, I used the Archlinux HowTo "Arch64 Install bundled 32bit system" to set up a chroot environment.

http://wiki.archlinux.org/index.php/Arc … bit_system

I must have mistyped something or there is an error in the HowTo; however, I don't know how to solve it and get dchroot to start an application.

Offline

#6 2008-04-28 03:10:32

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: chroot problem [SOLVED]

whaler wrote:

Well, I used the Archlinux HowTo "Arch64 Install bundled 32bit system" to set up a chroot environment.

http://wiki.archlinux.org/index.php/Arc … bit_system

I must have mistyped something or there is an error in the HowTo; however, I don't know how to solve it and get dchroot to start an application.

Okay, for users like myself, the HowTo should have included something along the following:

As USER, issue the command

xhost local:root

Then su to / and issue e.g.

dchroot -d acroread

To avoid the first command in the future, one can, in the file "/home/user/.bashrc", add the following sentence:

export XAUTHORITY=/home/user/.Xauthority

Substitute your own user name for "user" in all instances above.

I might add that I had sound in Firefox' Macromedia Flash plugin without going through the setup steps for sound in the HowTo, which may be obsolete. Thanks.

Last edited by whaler (2008-04-28 03:24:00)

Offline

#7 2008-04-28 03:28:40

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: chroot problem [SOLVED]

Remember it's a wiki, so feel free to add your own experiences to it.


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#8 2008-04-28 09:00:25

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: chroot problem [SOLVED]

Statix wrote:

Remember it's a wiki, so feel free to add your own experiences to it.

Thanks, I had not thought of that. I am a genuine newbie...! smile

Offline

Board footer

Powered by FluxBB