Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Can i install and run programs from inside chroot directory?
Can i install and run programs from inside chroot directory?
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?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can i install and run programs from inside chroot direct
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:
Created directory:
mkdir dir1
Installed debian base system:
changed root to dir1:
Then installed firefox and kodi, but i can't launch them. For firefox i get:
And for kodi i get this error messages:
I installed debootsrap:
Code: Select all
sudo apt install debootstrap
mkdir dir1
Installed debian base system:
Code: Select all
sudo debootstrap buster dir1
Code: Select all
sudo chroot dir1
Code: Select all
Couldn't find the application directory.
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
Re: Can i install and run programs from inside chroot direct
Guide:
https://wiki.debian.org/Debootstrap
See: 'Full process to create a complete Debian installation of sid'
https://wiki.debian.org/Debootstrap
See: 'Full process to create a complete Debian installation of sid'
Re: Can i install and run programs from inside chroot direct
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.Chrisdb wrote:Guide:
https://wiki.debian.org/Debootstrap
See: 'Full process to create a complete Debian installation of sid'
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can i install and run programs from inside chroot direct
My lined guide explains exactly how to start the applications, please read it.emil_21 wrote:This guide do not explain why my applications won't start.
Use ldd(1) to find which files are required.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.
deadbang
Re: Can i install and run programs from inside chroot direct
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:Head_on_a_Stick wrote:emil_21 wrote: Use ldd(1) to find which files are required.
Code: Select all
sudo chroot firefox1/
Code: Select all
chroot: failed to run command ‘/bin/bash’: No such file or directory
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
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can i install and run programs from inside chroot direct
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#
deadbang
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: Can i install and run programs from inside chroot direct
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?
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?
MX Linux packager and developer
Re: Can i install and run programs from inside chroot direct
Head_on_a_Stick wrote:EDIT: or save some effort with https://packages.debian.org/buster/bash-staticCode: 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#
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
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
Re: Can i install and run programs from inside chroot direct
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.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can i install and run programs from inside chroot direct
I'm not prepared to help you run a browser as root.
Please explain why you "need" two different FF versions.
http://xyproblem.info/
Please explain why you "need" two different FF versions.
http://xyproblem.info/
deadbang
Re: Can i install and run programs from inside chroot direct
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.
By the way, i am having the same problem to run programs in gui mode with debootstrap.
-
- Posts: 1939
- Joined: 2006-04-21 11:19
- Location: Sol Sector
- Has thanked: 1 time
- Been thanked: 2 times
Re: Can i install and run programs from inside chroot direct
In that case, I think you may be interested in this: https://nixos.org/nix/emil_21 wrote:It's not just firefox, but any program that i want to have with different setup.
If you want to keep the data separate, you can do that using Firejail.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.
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
Freespoke is a new search engine that respects user privacy and does not engage in censorship.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can i install and run programs from inside chroot direct
How about https://docs.appimage.org/packaging-guide/index.html? Or perhaps https://docs.flatpak.org/en/latest/first-build.htmlemil_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
And there's also nix (as pcalvert notes), GUIX and NetBSD's pkgsrc.
deadbang
Re: Can i install and run programs from inside chroot direct
I haven't heard of nix, i have to check it.pcalvert wrote:In that case, I think you may be interested in this: https://nixos.org/nix/emil_21 wrote:It's not just firefox, but any program that i want to have with different setup.
If you want to keep the data separate, you can do that using Firejail.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.
For example:PhilCode: 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
I have heard of fairjail but haven't test it extensively. Do you mean i can use firejail for any application and set the folder in which the application saves its data?
Re: Can i install and run programs from inside chroot direct
Head_on_a_Stick wrote:How about https://docs.appimage.org/packaging-guide/index.html? Or perhaps https://docs.flatpak.org/en/latest/first-build.htmlemil_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
And there's also nix (as pcalvert notes), GUIX and NetBSD's pkgsrc.
AppImage and Flatpak are good but they do not save the data in the same folder. For example, if i want to use Kodi 17 and Kodi 18 i can't, because they both will save they data in ~/.kodi.
-
- Posts: 1939
- Joined: 2006-04-21 11:19
- Location: Sol Sector
- Has thanked: 1 time
- Been thanked: 2 times
Re: Can i install and run programs from inside chroot direct
Yes, by giving each program its own home directory. Normally, programs run by a normal user “think” that "~/" is the home directory (because it is). Using Firejail, you can fool a program into “thinking” that a different directory is the home directory. For example, you could fool Kodi 17 into “thinking” that "~/Kodi_17" is the home directory, and you could fool Kodi 18 into “thinking” that "~/Kodi_18" is the home directory. This is done using the "--private=" option.emil_21 wrote: Do you mean i can use firejail for any application and set the folder in which the application saves its data?
Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Re: Can i install and run programs from inside chroot direct
It will be great if i can do that with Kodi using firejail. But what is the best way to install kodi 17 and kodi 18? I can't use .deb files and install them both system wide. Kodi is not available as appimage, and as flatpak only kodi 18 is available.
That is why i wanted to install kodi 17 and kodi 18 in separate chroot directory and run them from them, which probably is still possible, but as i understand running application in gui mode from chroot environment is not that easy.
That is why i wanted to install kodi 17 and kodi 18 in separate chroot directory and run them from them, which probably is still possible, but as i understand running application in gui mode from chroot environment is not that easy.
Re: Can i install and run programs from inside chroot direct
Is '/path/to/old/firefox' this directory ~/.mozilla? Because if i run:pcalvert wrote:PhilCode: 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
Code: Select all
firejail --private=~/Firejail_home/Firefox_old ~/.mozilla/ -no-remote
Code: Select all
Error: invalid command name