Running testing/unstable applications in Debian stable

Share your own howto's etc. Not for support questions!

Re: Running testing/unstable applications in Debian stable

Postby fsmithred » 2016-08-10 15:08

Oh, that's pretty cool. I didn't know about capabilities. Nice that they added an option to use it with systemd-nspawn.

This is probably not equivalent, but similar -

In the chroot, install firejail, then run (as user)
Code: Select all
firejail --seccomp Xephyr :1 -screen 1024x768 -resizeable & sleep 2 ; icewm --display=:1


I'm really hoping someone will come along and explain how to use lxc in a few easy steps, so I don't have to figure it out.
fsmithred
 
Posts: 1863
Joined: 2008-01-02 14:52

Re: Running testing/unstable applications in Debian stable

Postby Head_on_a_Stick » 2016-08-10 18:03

fsmithred wrote:explain how to use lxc in a few easy steps

Unfortunately, LXC is a complex beastie :?

The Debian wiki guide is pretty good:
https://wiki.debian.org/LXC

However, it lacks instructions for use on a laptop with a wireless connection; for that, see the ArchWiki:
https://wiki.archlinux.org/index.php/Li ... ss_network

My favorite LXC guides are this series:
https://www.stgraber.org/2013/12/20/lxc ... st-series/

These include the unprivileged container guide I linked to above and a section on running X applications from an LXC container.
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7663
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Running testing/unstable applications in Debian stable

Postby Danielsan » 2016-08-10 20:39

Hi guys this topic is supercool, I am one of those systemd haters :mrgreen: anyway we must use it untill debian decides to change for something else (sheppard init?).

I found this two links from the DebConf I hope can be useful for you:

User avatar
Danielsan
 
Posts: 478
Joined: 2010-10-10 22:36

Re: Running testing/unstable applications in Debian stable

Postby bester69 » 2017-12-28 21:39

Head,
Installing kodi (sid), Ive got this error, any idea how can i fix it? :?

i followed:
Code: Select all
debootstrap sid /var/lib/container/sid http://httpredir.debian.org/debian
systemd-nspawn --boot --directory=/var/lib/container/sid


DISPLAY=:0 kodi
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
libEGL warning: DRI2: could not open /dev/dri/card0 (No such file or directory)
Terminated
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1160
Joined: 2015-04-02 13:15

Re: Running testing/unstable applications in Debian stable

Postby Head_on_a_Stick » 2017-12-29 01:08

bester69 wrote:Ive got this error, any idea how can i fix it?

You need to add some extra flags to systemd-npawn to allow hardware acceleration in the container.

This guide explains how:

https://maci0.wordpress.com/2014/05/02/ ... idgin-vlc/
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7663
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Running testing/unstable applications in Debian stable

Postby bester69 » 2017-12-29 15:18

Head_on_a_Stick wrote:
bester69 wrote:Ive got this error, any idea how can i fix it?

You need to add some extra flags to systemd-npawn to allow hardware acceleration in the container.

This guide explains how:

https://maci0.wordpress.com/2014/05/02/ ... idgin-vlc/


I used this, and still same error:
Code: Select all
sudo systemd-nspawn --bind /tmp/.X11-unix:/tmp/.X11-unix \
--bind=/dev/shm:/dev/shm --bind=/dev/dri:/dev/dri \
--bind=/run/user/${UID}/pulse:/run/user/${UID}/pulse \
--boot -D /media/buster
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1160
Joined: 2015-04-02 13:15

Re: Running testing/unstable applications in Debian stable

Postby Head_on_a_Stick » 2017-12-29 16:19

^
My link wrote:make sure the OS image you use has the opengl libs for your physical video card, in the steam container the mesa libs are pre-installed

Looks like you may also need `dbus-launch` before the `kodi` command as well but I've never actually tried this (what exactly is wrong with v17.1?) so if you can figure it out please post back with details for the benefit of others.

Otherwise, use stevepusser's binary package instead perhaps?
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7663
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Running testing/unstable applications in Debian stable

Postby bester69 » 2017-12-29 16:34

Head_on_a_Stick wrote:^
My link wrote:make sure the OS image you use has the opengl libs for your physical video card, in the steam container the mesa libs are pre-installed

Looks like you may also need `dbus-launch` before the `kodi` command as well but I've never actually tried this (what exactly is wrong with v17.1?) so if you can figure it out please post back with details for the benefit of others.

Otherwise, use stevepusser's binary package instead perhaps?

ok Head, It really doesn matter, I was testing the systemd-nspawn you told me, but i see i cant make it work, so I will keep using chroot, that works great.. , dont waste more time with this; thanks again
My last try by using dbus-launch:
Code: Select all
Unpacking dbus-x11 (1.12.2-1) ...
Setting up dbus-x11 (1.12.2-1) ...
root@buster:~# su puigdemont -c "DISPLAY=:0 QT_X11_NO_MITSHM=1 dbus-launch /usr/bin/kodi --no-qt-privacy-ask"
ALSA lib conf.c:4974:(snd_config_expand) Unknown parameters CARD=Intel,DEV=0
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51:CARD=Intel,DEV=0
ALSA lib conf.c:4974:(snd_config_expand) Unknown parameters CARD=Intel,DEV=0
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71:CARD=Intel,DEV=0
ALSA lib confmisc.c:767:(parse_card) cannot find card 'Intel'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM sysdefault:CARD=Intel
ALSA lib confmisc.c:767:(parse_card) cannot find card 'Intel'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default:CARD=Intel
ALSA lib conf.c:4974:(snd_config_expand) Unknown parameters CARD=Intel,DEV=0
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front:CARD=Intel,DEV=0
libGL error: failed to open drm device: Operation not permitted
libGL error: failed to load driver: i965
libEGL warning: DRI2: could not open /dev/dri/card0 (Operation not permitted)
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1160
Joined: 2015-04-02 13:15

Re: Running testing/unstable applications in Debian stable

Postby llivv » 2018-01-02 09:48

viewtopic.php?p=622055#p622055
fsmithred
chroots can behave weird at times like anything else inside or around a computer or phone.
{
I noticed you use the mount bind option and I think it's only necessary to bind dev so you can mount dev/pts
( at least up to wheezy anyways ).
If you try another pre chroot mounting scheme it might let you run heavier window managers in the chroot, depending on the chroot host / chroot target combination.
Also be careful about how you mount and than always still be on the lookout for undesired changes to the host system
that occur back from the chroot. It happens even though it's not supposed to.

While typing this I just thought of a way to try to remove the bind option from the mount /dev command as well,, by copying the devs from the host system into place,, pre chroot than seeing if the chroot still works correctly.
Another thing to remember is the chroot target will behave almost exactly like the chroot host garrrrr

If anyone knows howto run a chroot target that runs a different ARCH from the chroot host - Please write it up !
}
after mounting
Code: Select all
#mount -t devtmpfs /dev $chrootdir/dev -o bind

I also mount
Code: Select all
#mount -t devpts /dev/pts $chrootdir/dev/pts
#mount -t tmpfs /dev/shm $chrootdir/dev/shm

because networking usually didn't work without it ( the way I premount the chroot env )

as you'll notice when running
Code: Select all
cat /etc/mtab
system mountpoints are changing a lot
I think squeeze to wheezy changed /dev/shm to /run/shm
and I haven't fiddled enough yet to know what's needed now and what's not
Edit Jan 18 21:19:07 EST 2018
double check the debootstrap man files Examples section for more hints
-keep in mind that the Examples section can show differences DEPENDING on which Debian Version you are viewing the man page from!
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
llivv
 
Posts: 5614
Joined: 2007-02-14 18:10
Location: cold storage

Previous

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 0 guests

fashionable