Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] [Sort of solved] Install 32 bit Iceweasel on 64 bit system  (Read 5504 times)

Offline vilde

  • User
  • Posts: 708
To be able to use my banks electronic identification I need to have a 32 bit browser. Before I could use nspluginwrapper for changing the "bank-id" plugin, it is only available for 32 bit system and iceweasel 64 bit will not recognize it. Now nspluginwrapper is not available anymore. For the moment I have solved it by installing a 32 bit version of siduction on a extra partition on my hard disk, but it would be more comfortable to have it on my main os. I'm not sure but maybe it would work with a 32 bit browser.

Is it possible to force install of a 32 bit browser on my 64 bit system with multiarch, and if it is, how do I do?

Edit:

I did it another way by installing the free version of the BankId client called FriBID by manual compilation. It works but we will see if it will maybe brake my system or not in the future?

tuxracer

  • Guest
Re: [Sort of solved] Install 32 bit Iceweasel on 64 bit syst
« Reply #1 on: 2012/12/01, 01:23:58 »
Quote from: "vilde"
To be able to use my banks electronic identification I need to have a 32 bit browser. Before I could use nspluginwrapper for changing the "bank-id" plugin, it is only available for 32 bit system and iceweasel 64 bit will not recognize it. Now nspluginwrapper is not available anymore. For the moment I have solved it by installing a 32 bit version of siduction on a extra partition on my hard disk, but it would be more comfortable to have it on my main os. I'm not sure but maybe it would work with a 32 bit browser.

Is it possible to force install of a 32 bit browser on my 64 bit system with multiarch, and if it is, how do I do?

Edit:

I did it another way by installing the free version of the BankId client called FriBID by manual compilation. It works but we will see if it will maybe brake my system or not in the future?
Another way is to install virtualbox and install a 32-bit version of siduction or whatever and use the browser (iceweasel etc.) which would then be 32-bit.

Anytime you need to do banking, you just start the virtual machine.
 
If that's no good, I apologize for wasting any time.

Offline vilde

  • User
  • Posts: 708
RE: Re: [Sort of solved] Install 32 bit Iceweasel on 64 bit
« Reply #2 on: 2012/12/01, 23:58:56 »
that’s one way of doing it, yes, thanks tuxracer

Offline michaaa62

  • User
  • Posts: 299
RE: Re: [Sort of solved] Install 32 bit Iceweasel on 64 bit
« Reply #3 on: 2012/12/02, 11:25:34 »
You could call the 32-bit binary from your 32-bit install via the chroot from the running 64-bit system like we used, when lots of stuff was not available for 64-bit at all.
This would not waste system performance and space of a virtual machine but only space for the 32-bit install. Even dist-upgrades for the 32-bit are smooth from 64-bit via chroot.

Offline DeepDayze

  • User
  • Posts: 457
RE: Re: [Sort of solved] Install 32 bit Iceweasel on 64 bit
« Reply #4 on: 2012/12/02, 16:49:36 »
Could you simply install the 32 bit version of iceweasel directly, provided your system is multi-arch capable? You might have to create a separate profile for handling the 32-bit plugins though

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
Re: RE: Re: [Sort of solved] Install 32 bit Iceweasel on 64
« Reply #5 on: 2012/12/02, 19:29:16 »
Quote from: "DeepDayze"
Could you simply install the 32 bit version of iceweasel directly, provided your system is multi-arch capable? You might have to create a separate profile for handling the 32-bit plugins though


Interesting question!  It certainly appears that you could install the 32-bit iceweasel on a multi-arch system like mine:

Code: [Select]
root@imerabox:/home/don# uname -a
Linux imerabox 3.6-8.towo-siduction-amd64 #1 SMP PREEMPT Tue Nov 27 21:54:06 UTC 2012 x86_64 GNU/Linux
root@imerabox:/home/don# apt-cache policy iceweasel:i386
iceweasel:i386:
  Installed: (none)
  Candidate: 19.0~a2+20121130042014-1
  Version table:
     19.0~a2+20121130042014-1 0
        500 http://mozilla.debian.net/ experimental/iceweasel-aurora i386 Packages
     10.0.11esr-1 0
        500 http://ftp.us.debian.org/debian/ unstable/main i386 Packages
        500 http://http.debian.net/debian/ unstable/main i386 Packages


But how would you know "which" iceweasel to run?
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline ayla

  • User
  • Posts: 1.744
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #6 on: 2012/12/02, 20:00:35 »
Quote
root@testbox:/home/cal #root: apt-get -s install iceweasel:i386                                                                                                              
Paketlisten werden gelesen... Fertig                                                                                                                                        
Abhängigkeitsbaum wird aufgebaut.                                                                                                                                            
Statusinformationen werden eingelesen.... Fertig                                                                                                                            
Die folgenden zusätzlichen Pakete werden installiert:                                                                                                                        
  gcc-4.7-base:i386 libasound2:i386 libatk1.0-0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbz2-1.0:i386 libc6:i386 libcairo2:i386        
  libcomerr2:i386 libcups2:i386 libdatrie1:i386 libdbus-1-3:i386 libdbus-glib-1-2:i386 libevent-2.0-5:i386 libexpat1:i386 libffi5:i386 libfontconfig1:i386                  
  libfreetype6:i386 libgcc1:i386 libgcrypt11:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386 libgssapi-krb5-2:i386 libgtk2.0-0:i386      
  libhunspell-1.3-0:i386 libice6:i386 libjasper1:i386 libjbig0:i386 libjpeg8:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libmozjs10d:i386  
  libnotify4:i386 libnspr4:i386 libnspr4-0d:i386 libnss3:i386 libnss3-1d:i386 libp11-kit0:i386 libpango1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386          
  libreadline6:i386 libselinux1:i386 libsm6:i386 libsqlite3-0:i386 libstartup-notification0:i386 libstdc++6:i386 libtasn1-3:i386 libthai0:i386 libtiff4:i386 libtinfo5:i386  
  libuuid1:i386 libvpx1:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-util0:i386 libxcb1:i386 libxcomposite1:i386            
  libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxft2:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxt6:i386    
  xulrunner-10.0:i386 zlib1g:i386                                                                                                                                            
Vorgeschlagene Pakete:                                                                                                                                                      
  fonts-stix:i386 otf-stix:i386 mozplugger:i386 libasound2-plugins:i386 glibc-doc:i386 locales:i386 rng-tools:i386 krb5-doc:i386 krb5-user:i386 librsvg2-common:i386        
  gvfs:i386 libjasper-runtime:i386 ttf-baekmuk:i386 ttf-arphic-gbsn00lp:i386 ttf-arphic-bsmi00lp:i386 ttf-arphic-gkai00mp:i386 ttf-arphic-bkai00mp:i386 libgnomeui-0:i386    
  libcanberra0:i386                                                                                                                                                          
Empfohlene Pakete:                                                                                                                                                          
  libc6-i686:i386 libglib2.0-data:i386 hicolor-icon-theme:i386 libgtk2.0-bin:i386 hunspell-en-us:i386 hunspell-dictionary:i386 myspell-dictionary:i386 krb5-locales:i386    
  notification-daemon:i386 uuid-runtime:i386                                                                                                                                
Die folgenden Pakete werden ENTFERNT:                                                                                                                                        
  iceweasel iceweasel-l10n-de iceweasel-l10n-en-gb libmozjs10d libstartup-notification0 xul-ext-adblock-plus xulrunner-10.0  
                                             
Die folgenden NEUEN Pakete werden installiert:                                                                                                                              
  gcc-4.7-base:i386 iceweasel:i386 libasound2:i386 libatk1.0-0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbz2-1.0:i386 libc6:i386        
  libcairo2:i386 libcomerr2:i386 libcups2:i386 libdatrie1:i386 libdbus-1-3:i386 libdbus-glib-1-2:i386 libevent-2.0-5:i386 libexpat1:i386 libffi5:i386 libfontconfig1:i386    
  libfreetype6:i386 libgcc1:i386 libgcrypt11:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386 libgssapi-krb5-2:i386 libgtk2.0-0:i386      
  libhunspell-1.3-0:i386 libice6:i386 libjasper1:i386 libjbig0:i386 libjpeg8:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libmozjs10d:i386  
  libnotify4:i386 libnspr4:i386 libnspr4-0d:i386 libnss3:i386 libnss3-1d:i386 libp11-kit0:i386 libpango1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386          
  libreadline6:i386 libselinux1:i386 libsm6:i386 libsqlite3-0:i386 libstartup-notification0:i386 libstdc++6:i386 libtasn1-3:i386 libthai0:i386 libtiff4:i386 libtinfo5:i386  
  libuuid1:i386 libvpx1:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-util0:i386 libxcb1:i386 libxcomposite1:i386            
  libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxft2:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxt6:i386    
  xulrunner-10.0:i386 zlib1g:i386                                                                                                                                            
0 aktualisiert, 81 neu installiert, 7 zu entfernen und 7 nicht aktualisiert.


Seems the 64-bit Version will be removed when installing 32-bit iceweasel?

greets
ayla

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #7 on: 2012/12/02, 20:10:42 »
Yes, ayla, same simulation result here.  So, you can have 64-bit iceweasel, or 32-bit iceweasel, but apt says you won't have both.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline DeepDayze

  • User
  • Posts: 457
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #8 on: 2012/12/03, 00:24:19 »
Quote from: "dibl"
Yes, ayla, same simulation result here.  So, you can have 64-bit iceweasel, or 32-bit iceweasel, but apt says you won't have both.


So in that case what needs to be done is file a bug report to allow 32 and 64 bit iceweasel to be co-installable, as I can't see why you can't have both archs of IW installed.

Offline vilde

  • User
  • Posts: 708
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #9 on: 2012/12/03, 00:50:22 »
Ok, if it would work with a 32 bit iceweasel and if in that case the 64 bit is removed what will I loose? will I have some slower actions from iceweasel any other mailfunction compare to the 64 bit?
----------------------

@michaaa62
Quote

You could call the 32-bit binary from your 32-bit install via the chroot from the running 64-bit system like we used, when lots of stuff was not available for 64-bit at all.
This would not waste system performance and space of a virtual machine but only space for the 32-bit install. Even dist-upgrades for the 32-bit are smooth from 64-bit via chroot.
This looks like the cleanest way of doing it.
How do I do that?

Offline michaaa62

  • User
  • Posts: 299
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #10 on: 2012/12/03, 10:09:31 »
1. Prepare things in the 64-bit environment:
You need a mount point for your 32-bit installation for the chroot, may be like
Code: [Select]
su
mkdir /chroot
Mount your 32-bit to this mount point.
There a couple of files from /etc, that should be identical in both installations, just copy them over. Remmeber this if you need to boot the 32-bit some time later and username or passwords were configured differently before
Code: [Select]
cp /etc/passwd /chroot/etc/
cp /etc/shadow /chroot/etc/
cp /etc/group /chroot/etc/
cp /etc/sudoers /chroot/etc/
cp /etc/hosts /chroot/etc/
I am not sure, if /etc/resolve.conf is necessary too...
You need to setup the mount of some 'filesystems' in your /etc/fstab. Add these lines
Code: [Select]
/home           /chroot/home            none bind 0 0

/tmp            /chroot/tmp             none bind 0 0

/dev            /chroot/dev             none bind 0 0
# If you get the error message:
# 'Can not write log, openpty() failed (/dev/pts not mounted?)#,
# you need to uncomment the next line:
# /dev/pts        /chroot/dev/pts         none bind 0 0
# For shared memory support (recommended) uncomment the next line
# /dev/shm          /chroot/dev/shm       none bind 0 0

/proc           /chroot/proc            proc defaults 0 0
# For problems with USB devices uncomment the next line
# /proc/bus/usb   /chroot/proc/bus/usb    none bind 0 0

/media/cdrom0   /chroot/media/cdrom0    none bind 0 0
# If you need some media mounts  you have to uncomment the next line
# /media          /chroot/media           none rbind 0 0
You also need a line for the 32-bit install device itself. Find the label or the uuid
Code: [Select]
ls -al /dev/devices/by-uuid
ls -al /dev/devices/by-label
Make the new mounts work
Code: [Select]
mount -aNow install dchroot to have the chroot wrapper ready
Code: [Select]
apt-get install dchroot
For the invocation of 32-bit applications you create a script to do the actual chroot and make it executable
Code: [Select]
echo '#!/bin/bash
/usr/bin/dchroot -d $1' > /usr/local/bin/do_chroot
chmod 755 /usr/local/bin/do_chroot


2. Enter the 32-bit chroot:
Code: [Select]
dchroot -dInstall the applications you will need later or dist-upgrade the 32-bit. For eachof the applications create a symbolic link like
Code: [Select]
ln -s /usr/bin/iceweasel /usr/local/bin/iceweasel32Do this for all the applications you need later in 64-bit, then leave the chroot
Code: [Select]
exit

3. Create the launcher in 64-bit:
Create the symbolic link like this
Code: [Select]
ln -s /usr/local/bin/do_chroot /usr/local/bin/iceweasel32You are ready to launch your 32-bit application from 64-bit now as user, so exit the root shell first then
Code: [Select]
iceweasel32For your desktop create a launcher either by copying of /usr/share/applications/iceweasel.desktop and editing the ICON and EXEC lines.

Hope my fainting memories have not totally left me, when i had to have flash and wine running in a chroot some years ago...
But post here if errors occur to have the debugged.

Offline vilde

  • User
  • Posts: 708
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #11 on: 2012/12/03, 12:55:22 »
@michaaa62  I tried your thing above but I didn't got it to work.
Quote

dchroot -d
That didn't work there is missing some information in /etc/schroot/schroot.conf or schroot.d
 
I did a little plying with schroot.conf and manage to get in to the 32 bit system but there is no internet (wifi) then?

And now I can't start my 32 bit installation as user with x anymore, only as root and then there is no internet(wifi) either. That is no big deal, it was only for experimenting.

Offline michaaa62

  • User
  • Posts: 299
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #12 on: 2012/12/03, 13:57:57 »
Did you try to copy /etc/resolve.conf to /chroot/etc also?
Are the localizations identical to have the right passwords and keyboard settings? Are there any messages if you enter
Code: [Select]
dchroot -dDid you do the dchroot as your user (not root)?

Offline vilde

  • User
  • Posts: 708
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #13 on: 2012/12/03, 14:40:02 »
Quote

 Are there any messages if you enter
      Code:
dchroot -d
Yes, it can't find chroot because of no configuration in /etc/schroot/schroot.conf or schroot.d

I can get iceweasel32 to work but there is no internet (wifi) on the chrooted system, cant use iceweasel, cant do a d-u.

Maybe this has to do with my try to configure schroot.conf or something else?

Offline michaaa62

  • User
  • Posts: 299
[Sort of solved] Install 32 bit Iceweasel on 64 bit system
« Reply #14 on: 2012/12/03, 15:42:38 »
Create /etc/schroot/schroot.conf with this content:
Code: [Select]
# schroot chroot definitions.
# See schroot.conf(5) for complete documentation of the file format.
#
# Please take note that you should not add untrusted users to
# root-groups, because they will essentially have full root access
# to your system.  They will only have root access inside the chroot,
# but that's enough to cause malicious damage.
#
# The following lines are examples only.  Uncomment and alter them to
# customise schroot for your needs, or create a new entry from scratch.
#
#
[siduction]
description=Contains iceweasel with plug-in
aliases=sid
type=directory
directory=/chroot
users=vilde
root-groups=root
script-config=desktop/config
personality=linux
preserve-environment=true
Try to enter the chroot now
Code: [Select]
dchroot -d sid
Things might have changed since i used it...
May be, you even need to install schroot package as well for more secure ways to enter the chroot system.