You are not logged in.

#1 2009-03-15 12:40:55

Registered: 2008-09-27
Posts: 156

Simple Arch32 Wrapper For Arch64 (Updated)

Since schroot often does not do what I want and refuses to start some apps, I wrote a simple wrapper which works just as i want it to.

Create /usr/bin/arch32_do and fill it with:

chroot /opt/arch32 su thoughtcrime -c "cd \"$currentpath\";$*"

Create /usr/bin/arch32 and fill it with:

sudo /usr/bin/arch32_do $*

Now start visudo and allow /usr/bin/arch32_do to be executed without a password (by adding this line):

thoughtcrime ALL=(ALL) NOPASSWD: /usr/bin/arch32_do

Now you can start all apps in the chroot by simply writing arch32 before it, like:

arch32 hamachi start
arch32 winecfg
arch32 zsnes

and so on.

UPDATE: It now uses the current path.

Last edited by thoughtcrime (2009-08-24 13:53:06)

- blog (about arch and other stuff):
- x86_64 user


Board footer

Powered by FluxBB