1 |
Tres Melton wrote: |
2 |
|
3 |
> Somewhere in this thread is the mention of ssh to run a 32 bit program. |
4 |
> That is a poor solution in my opinion. The suggestion was made to mount |
5 |
> the /tmp dirs and other things and I do this at boot. Further I have |
6 |
> written a program that will allow any user (approved by the sudoers file |
7 |
> in the chroot and the regular root) to run any program from wherever |
8 |
> they are without the headache of becoming root, etc.. Here ya go: |
9 |
> |
10 |
> #!/bin/bash |
11 |
> # |
12 |
> # Written and Copyright by Tres Melton (2005) |
13 |
> # |
14 |
> # Run a 32 bit program from 64 bit space |
15 |
> # |
16 |
> # If parameters given then execute the command instead of /bin/bash |
17 |
> # If no parameters then create a new 32 bit chroot jail shell |
18 |
> # |
19 |
> |
20 |
> JAIL_DIR="/mnt/sdb3/Gentoo-32" |
21 |
> |
22 |
> if [ $# -eq 0 ] ; then |
23 |
> echo "Starting 32 bit shell..." |
24 |
> /bin/linux32 sudo chroot ${JAIL_DIR} /usr/bin/sudo -u "#${UID}" bash -c "( cd ~ ; /bin/bash )" |
25 |
> else |
26 |
> echo "Starting a 32 bit shell to run \"$*\"" |
27 |
> /bin/linux32 sudo chroot ${JAIL_DIR} /usr/bin/sudo -u "#${UID}" bash -c "( cd ~ ; $* )" |
28 |
> fi |
29 |
> |
30 |
> Hope that helps some. Regards, |
31 |
|
32 |
Certainly does - thanks Tres. |
33 |
|
34 |
-- |
35 |
Rgds |
36 |
Peter Humphrey |
37 |
Linux Counter 5290, Aug 93. |
38 |
-- |
39 |
gentoo-amd64@g.o mailing list |