You are not logged in.

#1 2008-01-07 03:23:10

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

chroot question

I've been going over this part of the wiki for a couple days and I don't understand.

Once I setup the chroot how would if I try to install a 32bit program will it just auto detect the libs or do I need extra steps?

Offline

#2 2008-01-07 04:16:23

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: chroot question

After the 32bit chroot is set up, you use pacman (within the chroot) to install what ever you need. It works the same as in the regular system, informing you of needed libs or dependencies that need to be installed, but everything stays within the chroot enviornment, seperate from the normal system.

user ~ > su
Password:
root /home/user > chroot /opt/arch32
arch32 chroot / > pacman -Sy wine

Afterwards, typing exit will leave the chroot, same for root..

arch32 chroot / > exit
exit
root /home/user >exit
exit
user ~ >


-- archlinux 是一个极好的 linux

Offline

#3 2008-01-07 22:49:23

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

After I install a program (in this example we will use firefox) how do I run it if I already have firefox64? Do i need to remove ff64?

Offline

#4 2008-01-07 22:55:44

Nihathrael
Member
From: Freising, Germany
Registered: 2007-10-21
Posts: 82
Website

Re: chroot question

Check the wiki:
http://wiki.archlinux.org/index.php/Arc … 2bit_apps#

So you'd use dchroot -d firefox after setting up dchroot.

Greetz


Unknown Horizons - Open source real-time strategy game with the comfy Anno 1602 feeling!

Offline

#5 2008-01-07 23:13:02

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

Ok I configured the config file

# /etc/dchroot.conf
#
# This file configures the chroots that users can access with the 'dchroot'
# command.  Input lines consist of a description and a path separated by
# whitespace.  If more than one input line is present the first will be the
# default chroot.

# Example : the following line enables a chroot called 'stable'
# located at /chroot/stable

#stable /chroot/stable

arch32 /opt/arch32


[root@arch /]# dchroot -d firefox
dchroot: Invalid input line /etc/dchroot.conf:11
dchroot: Error reading config file '/etc/dchroot.conf'.


If I remove line 11 (stable /chroot/stable ) or put arch32 /opt/arch32 there I get the same error

Offline

#6 2008-01-07 23:50:54

Nihathrael
Member
From: Freising, Germany
Registered: 2007-10-21
Posts: 82
Website

Re: chroot question

That's exactly the way mine looks. Are you sure you installed you're chroot under that directory and followed all the steps in the wiki(that artikel i posted)?

Also make sure you are not currently logged into you chroot when issuing the dchroot command, this can be run by normal user and must be run from your 64bit environment. Use a fresh terminal and issue the command.


Unknown Horizons - Open source real-time strategy game with the comfy Anno 1602 feeling!

Offline

#7 2008-01-07 23:53:21

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

Nihathrael wrote:

That's exactly the way mine looks. Are you sure you installed you're chroot under that directory and followed all the steps in the wiki(that artikel i posted)?

Also make sure you are not currently logged into you chroot when issuing the dchroot command, this can be run by normal user and must be run from your 64bit environment. Use a fresh terminal and issue the command.

To get to my chroot I do

su
chroot /opt/arch32

Offline

#8 2008-01-07 23:57:54

Nihathrael
Member
From: Freising, Germany
Registered: 2007-10-21
Posts: 82
Website

Re: chroot question

Yes that's correct, you can then run any programm just by issuing the command needed. here "firefox".

Now because always logging into your chroot is very annoying, you can use dchroot -d firefox from your normal console/application launcher, !without! logging into the chroot beforehand. Just run the command in your normal console. Open a new console and type dchroot -d firefox.


Unknown Horizons - Open source real-time strategy game with the comfy Anno 1602 feeling!

Offline

#9 2008-01-08 00:04:53

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

Nihathrael wrote:

Yes that's correct, you can then run any programm just by issuing the command needed. here "firefox".

Now because always logging into your chroot is very annoying, you can use dchroot -d firefox from your normal console/application launcher, !without! logging into the chroot beforehand. Just run the command in your normal console. Open a new console and type dchroot -d firefox.

But thats the thing when I try I get the error about the config file...

I did come up with an error

[root@arch jduvall]# /etc/rc.d/arch32 start
:: Starting Arch32 chroot                                                [DONE]
[root@arch jduvall]# xhost +
access control disabled, clients can connect from any host
[root@arch jduvall]# chroot /opt/arch32
[root@arch /]# dchroot -d firefox
dchroot: Invalid input line /etc/dchroot.conf:12
dchroot: Error reading config file '/etc/dchroot.conf'.
[root@arch /]#


But other than that no errors that I can think of

Offline

#10 2008-01-08 00:09:08

Nihathrael
Member
From: Freising, Germany
Registered: 2007-10-21
Posts: 82
Website

Re: chroot question

That's what I'm trying to tell you. Do not enter the chroot!

[nihathrael@reaper ~]$ dchroot -d firefox
(arch32) firefox

That is all what is needed. Just start a new console and type "dchroot -d firefox". Do not enter "xhost +" and "chroot /opt/arch32" before you do that, it is not needed.


Unknown Horizons - Open source real-time strategy game with the comfy Anno 1602 feeling!

Offline

#11 2008-01-08 00:18:27

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

Ok I think I figured it out, installing dchroot under my non chroot seems to fix it thanks much for the help

Offline

#12 2008-01-10 00:03:48

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

I found out my problem

I skipped this step

You might also want to create a separate pacman.log LogFile for your 32-bit chroot environment (in order to be able to track the "32root" pacman/package changes properly/not mess up your current 64-bit pacman.log). Again, don't forget to change this back too at the end of this howto unless you want to mess up your pacman logging.

How do I do this?  create a new log file in the /opt/arch32/etc/pacman.conf?

Edit: Nvm I created a new file in /var/log called pacman32.log and pointed pacman.conf to that

Last edited by Elvish Legion (2008-01-10 00:08:46)

Offline

#13 2008-01-10 00:40:29

Elvish Legion
Member
Registered: 2007-12-29
Posts: 53

Re: chroot question

Edit:

Nvm have to add a user to the chroot

Last edited by Elvish Legion (2008-01-10 00:43:16)

Offline

Board footer

Powered by FluxBB