Announcement

Collapse
No announcement yet.

32-bit chroot and firefox

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    32-bit chroot and firefox

    Is anyone successfully running 32-bit firefox in a chroot environment?

    I need to run firefox in a 32-bit chroot to connect to a VPN. I also use this chroot environemnt to test Python development code in 32-bit environment. I do not have firefox installed outside of the chroot. I ran the following

    Code:
    sudo apt-get install debootstrap schroot
    CHROOT=/tmp/saucy-i386; mkdir -p $CHROOT; sudo debootstrap --arch=i386 --include=sudo,wget --components=main,universe,multiverse saucy $CHROOT [URL]http://debian.lcs.mit.edu/ubuntu[/URL]
    
    echo -e "[saucy-i386]\ndescription=Ubuntu saucy  i386 architecture\ndirectory=$CHROOT\ntype=directory\nusers=$USER\nroot-groups=root\n" | sudo bash -c 'cat - > /etc/schroot/chroot.d/saucy-i386'
    I then run

    Code:
    schroot -c saucy-i386
    Inside the chroot environment I install firefox.

    Code:
    sudo apt-get install firefox
    Set the display

    Code:
    export DISPLAY=:0
    Then try to run firefox.

    Code:
    firefox
    A dialogue box pops up with the message "Your Firefox profile cannot be loaded. It may be missing or inaccessible." The same message pops up when I run `firefox -P` to try and create a profile.
    Last edited by Snowhog; Jun 03, 2014, 08:38 AM. Reason: solved

    #2
    The problem was the my $HOME directory is encrypted and wasn't being mounted so it didn't find the ~/.mozilla folder. This [1] post tipped me off. I needed to edit /etc/schroot/default/fstab and change bind to rbind for home. Then install the 32-bit Java in /usr/lib within the chroot, create the symlink for mozilla, and everything seems to be working now.

    [1] https://bugs.launchpad.net/ubuntu/+s...ls/+bug/769595

    Comment

    Working...
    X