Can i install and run programs from inside chroot directory?

New to Debian (Or Linux in general)? Ask your questions here!

Can i install and run programs from inside chroot directory?

Postby emil_21 » 2020-02-09 06:52

I want to run different versions of Firefox and Kodi. Can i create chroot directories and install and run the different versions of the programs from this directories?
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13


Re: Can i install and run programs from inside chroot direct

Postby emil_21 » 2020-02-09 11:42

This is what i managed to do so far, but i will need some help, because i couldn't find straight forward guide for using debootstrap:

I installed debootsrap:
Code: Select all
sudo apt install debootstrap


Created directory:
mkdir dir1

Installed debian base system:
Code: Select all
sudo debootstrap buster dir1


changed root to dir1:
Code: Select all
sudo chroot dir1


Then installed firefox and kodi, but i can't launch them. For firefox i get:
Code: Select all
Couldn't find the application directory.

And for kodi i get this error messages:
Code: Select all
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
xcb_connection_has_error() returned true
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

Postby Chrisdb » 2020-02-09 16:20

Guide:
https://wiki.debian.org/Debootstrap
See: 'Full process to create a complete Debian installation of sid'
Chrisdb
 
Posts: 226
Joined: 2018-04-10 07:16

Re: Can i install and run programs from inside chroot direct

Postby emil_21 » 2020-02-09 17:12

Chrisdb wrote:Guide:
https://wiki.debian.org/Debootstrap
See: 'Full process to create a complete Debian installation of sid'


This guide do not explain why my applications won't start. Also, i prefer to not install the whole debain base system to run one application. I would like to create chroot directory and copy only the necessary files for firefox and kodi and be able to run them.
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

Postby Head_on_a_Stick » 2020-02-09 17:26

emil_21 wrote:This guide do not explain why my applications won't start.

My lined guide explains exactly how to start the applications, please read it.

emil_21 wrote:i prefer to not install the whole debain base system to run one application. I would like to create chroot directory and copy only the necessary files for firefox and kodi and be able to run them.

Use ldd(1) to find which files are required.
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can i install and run programs from inside chroot direct

Postby emil_21 » 2020-02-09 18:47

Head_on_a_Stick wrote:
emil_21 wrote:Use ldd(1) to find which files are required.


I am trying to do that but can't make it work. I copy firefox installation files into chroot directory and also copy bash binary. Then i used ldd and copy firefox and bash related libraries to chroot directory. But when i run:
Code: Select all
sudo chroot firefox1/

i get this:
Code: Select all
chroot: failed to run command ‘/bin/bash’: No such file or directory


This is the structure of my chroot folder:





Code: Select all
firefox1
├── bin
│   └── bash
├── etc
│   └── firefox-esr
│       └── firefox-esr.js
├── lib
│   └── x86_64-linux-gnu
│       ├── libc.so.6 -> libc-2.28.so
│       ├── libdl.so.2 -> libdl-2.28.so
│       ├── libgcc_s.so.1
│       ├── libm.so.6 -> libm-2.28.so
│       ├── libstdc++.so.6 -> libstdc++.so.6.0.25
│       └── libtinfo.so.6 -> libtinfo.so.6.1
├── lib64
│   └── ld-linux-x86-64.so.2 -> /lib/x86_64-linux-gnu/ld-2.28.so
└── usr
    ├── bin
    │   ├── bash
    │   └── firefox-esr
    ├── lib
    │   ├── firefox-esr
    │   │   ├── application.ini
    │   │   ├── browser
    │   │   │   ├── blocklist.xml
    │   │   │   ├── chrome -> ../../../share/firefox-esr/browser/chrome
    │   │   │   ├── chrome.manifest
    │   │   │   ├── crashreporter-override.ini
    │   │   │   ├── defaults -> ../../../share/firefox-esr/browser/defaults
    │   │   │   ├── extensions
    │   │   │   │   ├── langpack-ar@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ast@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-be@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-bg@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-bn@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-bs@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ca@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-cs@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-cy@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-da@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-de@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-el@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-en-GB@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-eo@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-AR@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-CL@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-ES@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-MX@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-et@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-eu@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-fa@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-fi@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-fr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ga-IE@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-gl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-gu-IN@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-he@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-hi-IN@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-hr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-hu@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-id@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-is@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-it@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ja@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-kk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-km@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-kn@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ko@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-lt@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-lv@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-mk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-mr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-nb-NO@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ne-NP@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-nl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-nn-NO@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pa-IN@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pt-BR@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pt-PT@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ro@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ru@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-si@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sq@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sv-SE@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ta@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-te@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-th@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-tr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-uk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-vi@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-zh-CN@firefox-esr.mozilla.org.xpi
    │   │   │   │   └── langpack-zh-TW@firefox-esr.mozilla.org.xpi
    │   │   │   ├── features
    │   │   │   │   ├── formautofill@mozilla.org.xpi
    │   │   │   │   ├── fxmonitor@mozilla.org.xpi
    │   │   │   │   ├── screenshots@mozilla.org.xpi
    │   │   │   │   ├── webcompat@mozilla.org.xpi
    │   │   │   │   └── webcompat-reporter@mozilla.org.xpi
    │   │   │   └── omni.ja
    │   │   ├── chrome.manifest
    │   │   ├── crashreporter
    │   │   ├── crashreporter.ini
    │   │   ├── defaults
    │   │   │   └── pref
    │   │   │       └── channel-prefs.js
    │   │   ├── dependentlibs.list
    │   │   ├── distribution -> ../../share/firefox-esr/distribution
    │   │   ├── firefox-bin -> firefox-esr
    │   │   ├── firefox-esr
    │   │   ├── fonts
    │   │   │   └── TwemojiMozilla.ttf
    │   │   ├── gmp-clearkey
    │   │   │   └── 0.1
    │   │   │       ├── libclearkey.so
    │   │   │       └── manifest.json
    │   │   ├── gtk2
    │   │   │   └── libmozgtk.so
    │   │   ├── libfreeblpriv3.chk
    │   │   ├── libfreeblpriv3.so
    │   │   ├── liblgpllibs.so
    │   │   ├── libmozavcodec.so
    │   │   ├── libmozavutil.so
    │   │   ├── libmozgtk.so
    │   │   ├── libmozsandbox.so
    │   │   ├── libmozsqlite3.so
    │   │   ├── libmozwayland.so
    │   │   ├── libnspr4.so
    │   │   ├── libnss3.so
    │   │   ├── libnssckbi.so
    │   │   ├── libnssdbm3.chk
    │   │   ├── libnssdbm3.so
    │   │   ├── libnssutil3.so
    │   │   ├── libplc4.so
    │   │   ├── libplds4.so
    │   │   ├── libsmime3.so
    │   │   ├── libsoftokn3.chk
    │   │   ├── libsoftokn3.so
    │   │   ├── libssl3.so
    │   │   ├── libxul.so
    │   │   ├── minidump-analyzer
    │   │   ├── omni.ja
    │   │   ├── pingsender
    │   │   ├── platform.ini
    │   │   ├── plugin-container
    │   │   └── Throbber-small.gif
    │   ├── mime
    │   │   └── packages
    │   │       └── firefox-esr
    │   ├── mozilla
    │   │   ├── extensions
    │   │   │   └── {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
    │   │   └── plugins
    │   └── x86_64-linux-gnu
    │       ├── libdl.so.2 -> libdl-2.28.so
    │       └── libpthread.so.0 -> libpthread-2.28.so
    └── share
        ├── applications
        │   └── firefox-esr.desktop
        ├── bug
        │   └── firefox-esr
        │       ├── control
        │       ├── presubj
        │       └── script
        ├── doc
        │   └── firefox-esr
        │       ├── changelog.Debian.gz
        │       ├── copyright
        │       ├── NEWS.Debian.gz
        │       └── README.Debian
        ├── firefox-esr
        │   ├── browser
        │   │   ├── chrome
        │   │   │   └── icons
        │   │   │       └── default
        │   │   │           ├── default128.png
        │   │   │           ├── default16.png
        │   │   │           ├── default32.png
        │   │   │           ├── default48.png
        │   │   │           └── default64.png
        │   │   └── defaults
        │   │       ├── preferences
        │   │       │   ├── debugger.js
        │   │       │   ├── devtools-client.js
        │   │       │   ├── devtools-startup.js
        │   │       │   ├── firefox-branding.js
        │   │       │   ├── firefox.js
        │   │       │   ├── vendor.js
        │   │       │   └── webide.js
        │   │       └── syspref -> /etc/firefox-esr
        │   └── distribution
        │       └── searchplugins
        │           └── common
        │               └── debsearch.xml
        ├── lintian
        │   └── overrides
        │       └── firefox-esr
        ├── man
        │   └── man1
        │       └── firefox-esr.1.gz
        └── mozilla
            └── extensions
                └── {ec8030f7-c20a-464f-9b0e-13a3a9e97384}

53 directories, 152 files
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

Postby Head_on_a_Stick » 2020-02-09 19:10

Code: Select all
empty@E485:~ $ tree test
test
├── bin
│   └── bash
├── lib
│   └── x86_64-linux-gnu
│       ├── libc.so.6
│       ├── libdl.so.2
│       └── libtinfo.so.6
└── lib64
    └── ld-linux-x86-64.so.2

4 directories, 5 files
empty@E485:~ $ sudo chroot test /bin/bash
bash-5.0#

EDIT: or save some effort with https://packages.debian.org/buster/bash-static
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can i install and run programs from inside chroot direct

Postby stevepusser » 2020-02-10 02:17

That seems to be a lot of effort to use the same Kodi 17.6 that you can get from stretch-backports on up... https://packages.debian.org/search?keyw ... ection=all

Oh, now it's been updated to 18.5 in experimental after so long, after I tore out my hair porting it over from deb-multimedia for MX? :evil: :twisted: :lol:
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.5, Mesa 19.3.3, 5.5 kernels, KeepassXC 2.5.3, Nvidia-driver 440.59, LibreOffice 6.4.1~rc1
User avatar
stevepusser
 
Posts: 11437
Joined: 2009-10-06 05:53

Re: Can i install and run programs from inside chroot direct

Postby emil_21 » 2020-02-10 07:05

Head_on_a_Stick wrote:
Code: Select all
empty@E485:~ $ tree test
test
├── bin
│   └── bash
├── lib
│   └── x86_64-linux-gnu
│       ├── libc.so.6
│       ├── libdl.so.2
│       └── libtinfo.so.6
└── lib64
    └── ld-linux-x86-64.so.2

4 directories, 5 files
empty@E485:~ $ sudo chroot test /bin/bash
bash-5.0#

EDIT: or save some effort with https://packages.debian.org/buster/bash-static



I fixed the bash issue and was able to execute chroot but if i try to launch firefox i get this error:
Code: Select all
bash-5.0# firefox-esr
firefox-esr: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


It seems a shared library - libpthread.so.0, is the issue but 'ldd firefox-esr' didn't list this library. This is the structure of my firefox chroot folder:

Code: Select all
firefox1
├── bin
│   └── bash
├── etc
│   └── firefox-esr
│       └── firefox-esr.js
├── lib
│   └── x86_64-linux-gnu
│       ├── libc.so.6
│       ├── libdl.so.2
│       └── libtinfo.so.6
├── lib64
│   └── ld-linux-x86-64.so.2
└── usr
    ├── bin
    │   ├── bash
    │   └── firefox-esr
    ├── lib
    │   ├── firefox-esr
    │   │   ├── application.ini
    │   │   ├── browser
    │   │   │   ├── blocklist.xml
    │   │   │   ├── chrome -> ../../../share/firefox-esr/browser/chrome
    │   │   │   ├── chrome.manifest
    │   │   │   ├── crashreporter-override.ini
    │   │   │   ├── defaults -> ../../../share/firefox-esr/browser/defaults
    │   │   │   ├── extensions
    │   │   │   │   ├── langpack-ar@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ast@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-be@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-bg@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-bn@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-bs@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ca@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-cs@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-cy@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-da@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-de@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-el@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-en-GB@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-eo@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-AR@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-CL@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-ES@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-es-MX@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-et@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-eu@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-fa@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-fi@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-fr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ga-IE@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-gl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-gu-IN@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-he@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-hi-IN@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-hr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-hu@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-id@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-is@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-it@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ja@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-kk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-km@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-kn@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ko@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-lt@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-lv@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-mk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-mr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-nb-NO@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ne-NP@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-nl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-nn-NO@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pa-IN@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pt-BR@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-pt-PT@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ro@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ru@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-si@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sl@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sq@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-sv-SE@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-ta@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-te@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-th@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-tr@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-uk@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-vi@firefox-esr.mozilla.org.xpi
    │   │   │   │   ├── langpack-zh-CN@firefox-esr.mozilla.org.xpi
    │   │   │   │   └── langpack-zh-TW@firefox-esr.mozilla.org.xpi
    │   │   │   ├── features
    │   │   │   │   ├── formautofill@mozilla.org.xpi
    │   │   │   │   ├── fxmonitor@mozilla.org.xpi
    │   │   │   │   ├── screenshots@mozilla.org.xpi
    │   │   │   │   ├── webcompat@mozilla.org.xpi
    │   │   │   │   └── webcompat-reporter@mozilla.org.xpi
    │   │   │   └── omni.ja
    │   │   ├── chrome.manifest
    │   │   ├── crashreporter
    │   │   ├── crashreporter.ini
    │   │   ├── defaults
    │   │   │   └── pref
    │   │   │       └── channel-prefs.js
    │   │   ├── dependentlibs.list
    │   │   ├── distribution -> ../../share/firefox-esr/distribution
    │   │   ├── firefox-bin -> firefox-esr
    │   │   ├── firefox-esr
    │   │   ├── fonts
    │   │   │   └── TwemojiMozilla.ttf
    │   │   ├── gmp-clearkey
    │   │   │   └── 0.1
    │   │   │       ├── libclearkey.so
    │   │   │       └── manifest.json
    │   │   ├── gtk2
    │   │   │   └── libmozgtk.so
    │   │   ├── libfreeblpriv3.chk
    │   │   ├── libfreeblpriv3.so
    │   │   ├── liblgpllibs.so
    │   │   ├── libmozavcodec.so
    │   │   ├── libmozavutil.so
    │   │   ├── libmozgtk.so
    │   │   ├── libmozsandbox.so
    │   │   ├── libmozsqlite3.so
    │   │   ├── libmozwayland.so
    │   │   ├── libnspr4.so
    │   │   ├── libnss3.so
    │   │   ├── libnssckbi.so
    │   │   ├── libnssdbm3.chk
    │   │   ├── libnssdbm3.so
    │   │   ├── libnssutil3.so
    │   │   ├── libplc4.so
    │   │   ├── libplds4.so
    │   │   ├── libsmime3.so
    │   │   ├── libsoftokn3.chk
    │   │   ├── libsoftokn3.so
    │   │   ├── libssl3.so
    │   │   ├── libxul.so
    │   │   ├── minidump-analyzer
    │   │   ├── omni.ja
    │   │   ├── pingsender
    │   │   ├── platform.ini
    │   │   ├── plugin-container
    │   │   └── Throbber-small.gif
    │   ├── mime
    │   │   └── packages
    │   │       └── firefox-esr
    │   ├── mozilla
    │   │   ├── extensions
    │   │   │   └── {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
    │   │   └── plugins
    │   └── x86_64-linux-gnu
    │       ├── libdl.so.2 -> libdl-2.28.so
    │       └── libpthread.so.0 -> libpthread-2.28.so
    └── share
        ├── applications
        │   └── firefox-esr.desktop
        ├── bug
        │   └── firefox-esr
        │       ├── control
        │       ├── presubj
        │       └── script
        ├── doc
        │   └── firefox-esr
        │       ├── changelog.Debian.gz
        │       ├── copyright
        │       ├── NEWS.Debian.gz
        │       └── README.Debian
        ├── firefox-esr
        │   ├── browser
        │   │   ├── chrome
        │   │   │   └── icons
        │   │   │       └── default
        │   │   │           ├── default128.png
        │   │   │           ├── default16.png
        │   │   │           ├── default32.png
        │   │   │           ├── default48.png
        │   │   │           └── default64.png
        │   │   └── defaults
        │   │       ├── preferences
        │   │       │   ├── debugger.js
        │   │       │   ├── devtools-client.js
        │   │       │   ├── devtools-startup.js
        │   │       │   ├── firefox-branding.js
        │   │       │   ├── firefox.js
        │   │       │   ├── vendor.js
        │   │       │   └── webide.js
        │   │       └── syspref -> /etc/firefox-esr
        │   └── distribution
        │       └── searchplugins
        │           └── common
        │               └── debsearch.xml
        ├── lintian
        │   └── overrides
        │       └── firefox-esr
        ├── man
        │   └── man1
        │       └── firefox-esr.1.gz
        └── mozilla
            └── extensions
                └── {ec8030f7-c20a-464f-9b0e-13a3a9e97384}

53 directories, 149 files
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

Postby emil_21 » 2020-02-10 11:35

I installed all missing libraries for which i get error messages when i try to launch firefox, but now when i try to launch firefox i get this:

Code: Select all
bash-5.0# firefox-esr
Couldn't find the application directory.
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

Postby Head_on_a_Stick » 2020-02-11 05:10

I'm not prepared to help you run a browser as root.

Please explain why you "need" two different FF versions.

http://xyproblem.info/
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Can i install and run programs from inside chroot direct

Postby emil_21 » 2020-02-11 06:46

It's not just firefox, but any program that i want to have with different setup. Also, it will be great if you can create portable apps like that - everything run from one folder and saves data in that folder.

By the way, i am having the same problem to run programs in gui mode with debootstrap.
emil_21
 
Posts: 67
Joined: 2017-04-14 06:13

Re: Can i install and run programs from inside chroot direct

Postby pcalvert » 2020-02-11 16:18

emil_21 wrote:It's not just firefox, but any program that i want to have with different setup.

In that case, I think you may be interested in this: https://nixos.org/nix/


emil_21 wrote:Also, it will be great if you can create portable apps like that - everything run from one folder and saves data in that folder.

If you want to keep the data separate, you can do that using Firejail.

For example:
Code: Select all
mkdir -p ~/Firejail_home/Firefox_old  <=== You only need to do this once.
firejail --private=~/Firejail_home/Firefox_old /path/to/old/firefox -no-remote

mkdir -p ~/Firejail_home/Firefox_new  <=== You only need to do this once.
firejail --private=~/Firejail_home/Firefox_new /path/to/new/firefox -no-remote


Phil
“Property is the fruit of labor; property is desirable; it is a positive good
in the world. That some should be rich shows that others may become
rich, and hence is just encouragement to industry and enterprise.”
— Abraham Lincoln
pcalvert
 
Posts: 1873
Joined: 2006-04-21 11:19
Location: Sol Sector

Re: Can i install and run programs from inside chroot direct

Postby Head_on_a_Stick » 2020-02-11 16:25

emil_21 wrote:it will be great if you can create portable apps like that - everything run from one folder and saves data in that folder

How about https://docs.appimage.org/packaging-guide/index.html? Or perhaps https://docs.flatpak.org/en/latest/first-build.html

And there's also nix (as pcalvert notes), GUIX and NetBSD's pkgsrc.
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable