You are not logged in.

#1 2009-12-12 21:04:19

owain
Member
From: Manchester, UK
Registered: 2009-08-24
Posts: 260

MIDI from within 32-bit chroot

I'm wanting to use wine-pulse from AUR, within a 32-bit chroot on my 64-bit system.  This is to run Finale 2009, which doesn't work with the Pulseaudio Alsa plugin when installed under bin32-wine.  The problem I'm having is that nothing in the chroot can access any midi ports, with the error as follows:

$ aconnect -io
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied

Audio from the chroot, including through the Alsa driver in Wine, works OK.  Is there something I need to configure or install to get this working?

Offline

#2 2009-12-13 04:26:21

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: MIDI from within 32-bit chroot

maybe timidity or something for midi support? but from the looks of that error you may need to add yourself to the 'audio' group in your chroot. if that doesn't work, do an ls -l /dev/snd/seq to see what its permissions are.


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#3 2009-12-13 11:08:43

owain
Member
From: Manchester, UK
Registered: 2009-08-24
Posts: 260

Re: MIDI from within 32-bit chroot

Ah, something weird is happening with chroot.  I've got the following in my .bashrc, with passwordless sudo access to chroot enabled:

alias chroot32="sudo chroot --userspec=1000 /opt/arch32 /bin/bash"

This is what happens when I use it:

$ chroot32

$ whoami
owain

$ groups
root bin daemon sys adm disk wheel log

If I then do 'su owain', everything becomes correct.  Running chroot from root is also correct.  Is it possible to chroot directly to a user in the way I was wanting?

Offline

#4 2009-12-13 11:35:31

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: MIDI from within 32-bit chroot

I'd imagine you could do this:

alias chroot32="sudo chroot /opt/arch32 /usr/bin/sudo -u '#1000' -s"

but you might wanna test it first, i'm no expert on chroot.


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#5 2009-12-13 12:27:11

owain
Member
From: Manchester, UK
Registered: 2009-08-24
Posts: 260

Re: MIDI from within 32-bit chroot

PirateJonno wrote:

I'd imagine you could do this:

alias chroot32="sudo chroot /opt/arch32 /usr/bin/sudo -u '#1000' -s"

but you might wanna test it first, i'm no expert on chroot.

That's done the trick - thanks.

Offline

#6 2009-12-13 14:47:53

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: MIDI from within 32-bit chroot

no problem smile just curious, are you able to get X programs working easily with that command or do you have mess around with xhosts and whatnot? also, i'd recommend putting the full chroot command you're using in /etc/sudoers, because it could be dangerous letting any chroot command be run as root under your user (or maybe you've done that already i dunno)


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#7 2009-12-13 15:32:23

owain
Member
From: Manchester, UK
Registered: 2009-08-24
Posts: 260

Re: MIDI from within 32-bit chroot

PirateJonno wrote:

no problem smile just curious, are you able to get X programs working easily with that command or do you have mess around with xhosts and whatnot?

They work fine

also, i'd recommend putting the full chroot command you're using in /etc/sudoers

Good point, ta smile

Offline

Board footer

Powered by FluxBB