Running 64b apps from chrooted 32b (e.g. ktorrent64 from firefox32)

I run arch64 with chroot for some 32 bit applications (did like the wiki http://wiki.archlinux.org/index.php/Arc … bit_system).
I'm new to arch and to 64 bit architecture (just two days!).
I run firefox @ 32bit for flash and java plugins.
When I try to open a file from firefox32, it won't find the application because searches in the 32 bit environment.
For example I want to click on a torrent file and say "open with ktorrent" (where of course ktorrent is installed in the 64 bit environment), or click on a tar.gz and say "open with ark". Let's use this last case as an example.
I succeeded to do it up to a certain point, but I miss the final one, so please help me to find the solution! The basic idea is chrooting from the 32 bit environment to the original 64 bit one.
This is what I did:
1) I created the directory /opt/arch32/opt/arch64 (to say the truth I did'n put the "/opt"s, but I will discuss as if I did to follow the wiki's notations
2) I added a "mount" and an "umount" line to  /etc/rc.d/arch32 rc
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case $1 in
start)
stat_busy "Starting Arch32 chroot"
mount --bind /proc /opt/arch32/proc
mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
mount --bind /dev /opt/arch32/dev
mount --bind /dev/pts /opt/arch32/dev/pts
mount --bind /dev/shm /opt/arch32/dev/shm
mount --bind /sys /opt/arch32/sys
mount --bind /tmp /opt/arch32/tmp
mount --bind /home /opt/arch32/home
mount --bind / /opt/arch32/opt/arch64 #ADDED LINE
add_daemon arch32
stat_done
stop)
stat_busy "Stopping Arch32 chroot"
umount /opt/arch32/proc/bus/usb
umount /opt/arch32/proc
umount /opt/arch32/dev/pts
umount /opt/arch32/dev/shm
umount /opt/arch32/dev
umount /opt/arch32/sys
umount /opt/arch32/tmp
umount /opt/arch32/home
umount /opt/arch32/opt/arch64 # ADDED LINE
rm_daemon arch32
stat_done
restart)
$0 stop
sleep 1
$0 start
echo "usage: $0 {start|stop|restart}"
esac
exit 0
3) I installed dchroot inside the 32bit environment and then added the line
arch64 /opt/arch64
to /opt/arch32/etc/dchroot.conf
4) I created and made executable the script /opt/arch32/usr/bin/ark64
#!/bin/bash
dchroot -d "ark $@"
Now, this system works from the command line, for example I can do, from inside the 32bit environment,
ark64 file.tar.gz
but I don't know how to let it work from firefox. I guess I have something to change in the ark64 script, but I don't know what.
Another issue: if I do "chroot /opt/arch32" and then "chroot /opt/arch64", my home directory is empty. Maybe I should have added some other mount and umount lines? I'm a little scared of this, because I don't know what will happen of the content of my home directory when I stop the arch32 daemon.
Last edited by alcafar (2008-03-26 13:44:10)

Ibex wrote:Is it possible to do on a .tar.gz "open with" and then select the ark64 executable script? So that firefox tries to open the .tar.gz with the ark64 script.
Yes, it is.
Respect to my previous post, I modified /etc/rc.d/arch32 to mount also the home directory in the arch64 chroot (I have /home on a different partition than /):
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case $1 in
start)
stat_busy "Starting Arch32 chroot"
mount --bind /proc /opt/arch32/proc
mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
mount --bind /dev /opt/arch32/dev
mount --bind /dev/pts /opt/arch32/dev/pts
mount --bind /dev/shm /opt/arch32/dev/shm
mount --bind /sys /opt/arch32/sys
mount --bind /tmp /opt/arch32/tmp
mount --bind /home /opt/arch32/home
mount --bind / /opt/arch32/opt/arch64
mount --bind /home /opt/arch32/opt/arch64/home
add_daemon arch32
stat_done
stop)
stat_busy "Stopping Arch32 chroot"
umount /opt/arch32/proc/bus/usb
umount /opt/arch32/proc
umount /opt/arch32/dev/pts
umount /opt/arch32/dev/shm
umount /opt/arch32/dev
umount /opt/arch32/sys
umount /opt/arch32/tmp
umount /opt/arch32/home
umount /opt/arch32/opt/arch64
rm_daemon arch32
stat_done
restart)
$0 stop
sleep 1
$0 start
echo "usage: $0 {start|stop|restart}"
esac
exit 0
I created an executable script /opt/arch32/usr/bin/run64.sh
#!/bin/bash
cmd=`basename $0`
for i in "$@"
do
cmd="$cmd '$i'"
done
exec dchroot -d "$cmd"
and created some links
ln -s run64.sh ark
ln -s run64.sh ktorrent
ecc.
Now in firefox32 you can do for example on a tar.gz file "open with /usr/bin/ark".
It works also if the file name contain spaces, but not if it contains other characters that need to be escaped in bash, for example [ or ].
It's just a scripting issue now.
I read your other thread about compatibility mode, sounds interesting, I'll read something in the weekend.

Similar Messages

  • HT2090 hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to r

    hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to reboot.
    Is there a way to use activity monitor to identify and kill the process controlling the isight? My apologies in advance if this sounds windows (task manager) like.
    Thanks

    tqtclipper wrote:
    hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera...
    http://support.apple.
    com/kb/HT2411: Your camera can be used by only one application at a time.
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
    tqtclipper wrote:
    ... Is there a way to use activity monitor to identify and kill the process controlling the isight? ...
    http://support.apple.
    com/kb/PH5147:  You can quit any process you can see in those listed in the window that opens when you use Activity Mornitor's 
         Window >
    Activity Monitor
    menu command.
    Message was edited by: EZ Jim
    Mac OSX 10.8.3

  • I recently upgraded to Mavericks from Snow Leopard. Does Snow Leopard still exist on my Mac? If so, is it possible to restart under Snow Leopard in order to run PowerPC apps? If not, is there an OS available in 64 bit that supports PowerPC apps? Mav ***.

    I recently upgraded to Mavericks from Snow Leopard. Does Snow Leopard still exist on my Mac? If so, is it possible to restart under Snow Leopard in order to run PowerPC apps? If not, is there an OS available in 64 bit that supports PowerPC apps? Mav ***.

    The only reason I upgraded to Mavericks was because my Snow Leopard OS was 32 bit, which I was told would support only 4GB of RAM.
    That wasn't quite right. You can put in as much RAM as your Mac's hardware supports. The division is in the apps themselves. A 32 bit app can't use more than 4 GB or RAM. A 64 bit app can use much more.
    For example, as a 32 bit only version, Photoshop CS3 can't use more 4GB of RAM, no matter how much you actually have installed. CS4 or later can use all the RAM you want to throw at it.

  • Hi. NOT CALL ME FOR I AM DEAF BETTER U WRITE ONLY EMAIL. When I run the app ALLMYMUSIC FROM WONDERSHARE after installing I get this window up. When I log in with my Apple ID I just get: The Apple ID you entered couldn't be found or your password was incor

    Hi. NOT CALL ME FOR I AM DEAF BETTER U WRITE ONLY EMAIL.
    When I run the app ALLMYMUSIC FROM WONDERSHARE after installing I get this window up.
    When I log in with my Apple ID I just get:
    The Apple ID you entered couldn't be found or your password was incorrect. Please try again.
    I have however made sure that this is the correct Apple ID and password that I am putting in. In the Mac App Store it works.
    Do you have any solution?
    I am running Mavericks 10.9.2.

    To post a screenshot click on the "Camera" button at the top of the reply box and upload it there.
    MtD

  • Having trouble with running an APP transferred from my imac?

    Having trouble with running an APP transferred from my imac?

    It asks me to sign in.  I sign in and nothing happens. 

  • Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    The Mac OS X and iOS versions are separate products

  • IMac running 10.7.5 and have 2 question marks from old PPC apps, which I cannot locate to remove from the system?  Any suggestions please?

    iMac running 10.7.5 and have 2 question marks from old PPC apps, which I cannot locate any links to remove from the system?  Any suggestions please?

    Hello, if those Question marks are in the Dock, it means OSX can't find them either.
    Right click on the Q mark & choose Remove from Dock, might be Roght click or click, then Options>Remove from dock on later OSX versions.
    Sometimes you can just drag it of the Dock, or CMD +drag it off.

  • When running a "stand-alone" APP..how do I send midi from Logic?

    Hi all,
    When running a "stand-alone" APP..how do I send midi from Logic?.....Please no IAC stuff it doesn't work.......thanx
    SvK

    using IAC here no problems. works very well.
    you can host your au's in another app such as soundflower or au lab, but you are still going to need to get it to hear midi. you can use physical midi ports with something like a MTP midi interface, and getting the midi by routing the out of one port to the in of another (midi loop) but you have to be careful logic doesn't listen to the same midi signal or everything will jam up (midi feedback).

  • How to run iphone apps from desktop? is it Possible???

    Hello,
    I was wondering if it was possible to run iphone or itouch app's from your desktop? maybe as a widget might work also.
    Many have purchased loads of App's from iTunes store and possibly one day may not have a iphone or itouch in there future, hate to loose all those great app's.
    Would apple or someone release a program that would let you run the App's on your desktop or even better maybe have iTunes be able to run those App's?
    Just a thought, Sound off if this may be a interest to you!!!

    No, sorry, it's not possible (not for users, anyway; developers have a "simulator" where some application functions can be tested on the development computer, but only a subset of functions work).
    Whether this is something Apple would make possible in the future, no one here can say. You can provide Apple with feedback on the issue here:
    http://www.apple.com/feedback

  • Mount an AFP or SMB then run an app from it

    Hi everyone.
    My problem:
    I need to mount an AFP or an SMB share and then run a .app from it.
    I then add this to the login items and it runs at login.
    The .app can be located on our xserve or windows server.
    I have tried:
    mount_smbfs
    But this causes errors in mounting and wont delete the folder it creates for itself and when other users log into the machine it will not run the app.
    Any help would be great!
    Thanks,
    Matt.

    Hi TT,
    Yes I want to add an application that is located on a network share to the login items.
    User Accounts are set up in Active Directory.
    There is an OD master on our xserve that connects to AD for authentication.
    Kerberos is disabled on xserve.
    Guest access can be enabled to the share.
    I have tried the following in an applescript:
    tell application "Terminal"
    activate
    do script "open afp://USERNAME:PASSWORD@SERVER/APPNAME.app"
    end tell
    With AFP or with SMB - both don't work.
    Tried another applescript for finder:
    tell application "Finder"
    mount volume "afp://USERNAME:PASSWORD@SERVER"
    end tell
    then the terminal command after that to open the app.
    Doesn't work either.
    I'm confused :S
    Thanks,
    Matt.

  • I have 2 iphones4! Do I have to create one apple id for each device or I can have both in one apple id? I'm asking cause I'm trying to run findmyiphone app for both devices!

    I have 2 iphones4! Do I have to create one apple id for each device or I can have both in one apple id? I'm asking cause I'm trying to run findmyiphone app for both devices!

    Here's what I do. My wife and  I each have an iPhone. We each have our own Apple ID. I also have another totally separate Apple ID. The ONLY thing that one has been used for was to set up Find my iPhone for our phones and my iPad. There is no reason the MobileMe setting for find my iphone can't be something completely different from your regular Apple ID UNLESS you already use MobileMe, in which case the 2 conflict in ways I don't understand as I don't subscribe to it.

  • How Do I Run the Apps?

    Hello all - have an HP Envy 4500, using the eprint centre, sched apps printing OK, but confused as to how to run the apps on demand. For example, HP Quick Forms. I can schedule, I can look at samples, but how does one print out a desired sheet such a sheet of graph paper on demand? I can't figure that one out, and also how does one post a comment. I don't see any button for that either. Another example is the App "Universal Crossword". I can schedule it and have them print, but how can I manually print one? So this applies to all the apps, how does one simply use them on demand instead of scheduling. Clickong on the app itself just gives the sample views.
    Thanks for any help.
    This question was solved.
    View Solution.

    Hi harrc,
    Welcome to the HP Support Forums. I see that you have some questions about the apps you find in HP Connected.
    To print a sample of any of the HP Quick Forms, you can print them on demand from the front panel of the printer. As for the remaining apps, there isn’t an on-demand option available. For reference I’ve included the Getting Started With HP Printables.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Error 500 Internal Server Error When trying to run an app

    Greetings,
    I'm trying to figure out how to fix this issue when I'm trying to run an app from JDeveloper 10.1.3.3.0.
    This is my problem
    1st of all it JD compiles everything great
    http://img163.imageshack.us/img163/6589/compiling.jpg
    2nd
    The embedded server seems to works
    http://img856.imageshack.us/img856/1231/runingserver.jpg
    3rd
    Everything crash!
    http://img14.imageshack.us/img14/4301/internalse.jpg
    JDeveloper doesn't shows any error. Same problem when trying to Debug
    I'm using an oracle DB 10g which is in a different computer (in a server)... any guesses?
    Thanks in advance!
    -Fury

    what URL you are trying to run ?
    did you try to run on different computer ?
    Jdev 10g is quite old now and i dont think it supports JSPX pages (i saw jspx extension in your deployment)
    Zeeshan

  • Error Running Oracle Apps and Discoverer at the same time

    Hello,
    We are having trouble running Oracle Apps and Discoverer at the same time on certain user's machines. Here are the specifics:
    The user opens Oracle Apps in Internet Explorer. The user then opens Discoverer in another Internet Explorer windows and receives the following error: Runtime Error! Program: C:\Program Files\Internet Explorer\iexplore.exe abnormal program termination
    As a work around, I installed Firefox on those user's machines. These users run Oracle Apps in Internet Explorer and run Discoverer in FireFox. This has solved the problem in 99% of the cases. However, there is one user who is having FireFox using Discoverer freeze when running Oracle Apps in Internet Explorer.
    Can anyone provide any insight on how I can solve these conflict issues so users can run Oracle Apps and Discoverer at the same time?
    Thanks in advance for your help,
    Carlos

    Hi Michael,
    I agree with you completely. It is reccommended to run 10g on a separate physical server unless you have sufficient resources to run on the same server (which even most large clients do not) Even then, I would recommend a separate server.
    I should have put my comment in context :-)
    a.) I was only stating that it was possible
    and
    b.) whether 10g is installed on the same physical server or separate should not affect the client browser crashing issue that was posted.
    I do have an install with EBS11i and Discoverer 10g on the same physical server and it works fine (this is sandbox/ TEST). Most of my large customers have 10g installed on multiple physical servers due to load balancing (capacity).
    I do work for Oracle. I try to help out on the forum when I can, but it is hit or miss :-(
    I would be glad to discuss anything privately.
    As for the issue at hand, I can reproduce the problem and here is what is occuring.
    I have EBS 11i configured with Jiniator 1.3.24
    I have Discoverer 10g configured with Sun Java plugin 1.4.2_06
    1. If you launch EBS 11i apps and a form with MS IE, then the browser launches the form using Jiniator JRE 1.3.xx (whatever you have configured in AutoConfig for EBS11i)
    2. Next, the user navigates to EBS 11i SSWA and launches a Discoverer workbook.
    What occurs is a child IEXPLORE.exe process is spawned from the parent IEXPLORE.exe process and Discoveer Plus is launched. The parent iexplore.exe process will be attached to the Jiniator JVM. Now if Discoverer is configured with
    a.) Sun Java Plugin or
    b.)a version of Jinitiator that is a different version from what EBS 11i is configured with
    then you may get this conflict.
    It really is an MS IE/JRE conflict with Jinitiator and Sun Java Plugi and the way the broswers attaches to the JVM (IMHO) as this behaviour could be reproduced with other non-oracle java applets.
    You can workaround the situation by:
    a. configure EBS11i and Discoverer to use the same version of Jiniator 1.3.xx
    b. educate the users to open one MS IE browser to connect to EBS11i and then open a second MS IE browser to login to EBS11i SSWA or Discoverer 10g Plus directly to launch workbooks. They need to to this by clicking on the icon and not using File >> New browser. Clicking on the icon will spawn a new parent iexplore.exe process that can attach to a second/different JVM. File >> New Window will spawan a child of the parent.
    c. As you did use two browser versions. MS IE for EBS11 connection and FireFox for Disocverer 10g connection.
    I would choose optoin b, so that you can use Sun Java Plugin with Discoverer.
    Open to any comments. I hope that helps you workaround the problem. The ideal solution is to have EBS 11i use/cerified with the 1.4 or 1.5 JRE. In poking around, I see there is a related post to this on one of Oracle's EBS 11i Product Managers Blog.
    See:
    http://blogs.oracle.com/schan/2006/04/18#a23

  • How to do a clean install go yosemite and then just install certain files, apps, documents, phopt's, etc...from time machine backup?

    How to do a clean install of yosemite (have Mavericks 10.9.5 now) and then just install certain files, apps, documents, phopt's, etc...from time machine backup?

    Do a backup before doing anything.
    If you want to make a clean install of Mountain Lion, boot into the Recovery Volume (command - R) on a restart, use Disk Utility to Verify/Repair  the disk and run Repair Permissions. Then erase the hard drive using Mac OS Extended (Journaled) format using the Options button. Reinstall Yosemite. Restart normally and test. Use Setup Assistant or Migration Assistant to import what you want.
    Clean Install

Maybe you are looking for

  • Failover Cluster Manager - Partioned Networks Server 2012

    Hello, I have a DR cluster that I am trying to validate. It has 3 nodes. Each has a teamed vEthernet adapter for Cluster Communications and Live Migration. I can start cluster service on 2 of the 3 nodes without the networks entering a partioned stat

  • How can we split limit row counts for DB2?

    We want to mass data from DB2. but, we guess 200,000,000 count. so we try to split by 5,000 count and almost 5 MB. How can we use sql query for DB2? How can we make JDBC Sender? but, We don't use update query. because Customer did not allow ours requ

  • Photo Page Bug?

    I have produced a web gallery for real estate. On each page is a property description, photo album. google map etc. When I view this page in the browser and click a photo to view the album anything below the album is pushed downwards on the web page.

  • Having trouble installing photography package PS+LR

    I own hardcopies of CS6 and Lightroom 5.  I just purchased the $10/mo photographys package to get CC and LR updates. When I attempt to download CC photoshop, my computer goes to my previous version of PS,  not CC.   I haven't even tried to install Li

  • Queries on Oracle Lite

    1. We use ADOCE to connect to databaseon WINCE PDA. What about for Palm ? 2. Is the Oracle DB store in the same format on WINCE and Palm ? null