You are not logged in.
Pages: 1
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
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
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
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
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
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
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
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
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
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
Ok I think I figured it out, installing dchroot under my non chroot seems to fix it thanks much for the help
Offline
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
Edit:
Nvm have to add a user to the chroot
Last edited by Elvish Legion (2008-01-10 00:43:16)
Offline
Pages: 1