Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was trying to start Xfce4 in a chroot.

The problem is that Xfce4 starts, shows default the UI but the USB keyboard and mouse are not working.

My chroot script:

#!/bin/bash
mount --bind /dev /srv/nboot_i386/dev
mount --bind /dev/pts /srv/nboot_i386/dev/pts
mount --bind /proc /srv/nboot_i386/proc
mount --bind /sys /srv/nboot_i386/sys
mount --bind /tmp /srv/nboot_i386/tmp
chroot /srv/nboot_i386/ /bin/bash
umount /srv/nboot_i386/dev
umount /srv/nboot_i386/dev/pts
umount /srv/nboot_i386/proc
umount /srv/nboot_i386/sys
umount /srv/nboot_i386/tmp

When I copy the chroot filesystem onto a separate HDD, and install a bootloader to make it boot, everything works fine.

I also tried to run KDE4 the same way and the keyboard and mouse weren't working, so it seems the chrooted X server is causing trouble. I've studied the X server log, but haven't found anything suspicious.

I'am using Virtualbox, but the problem is same on the real PC.

What I do: debootstrap, install Xfce4 in chroot, run Xfce4. I've tested i386/amd64 Wheezy/Jessie

What magic am I missing?

I've found the answer at last - /run/udev should be binded also.

I think this info may be helpfull.

share|improve this question
    
Rather than add your answer in your question, add it as an answer in its own right and accept it. –  jasonwryan Jul 7 '13 at 21:08
    
can't answer my own question. no UI for that ) –  tohaz Jul 7 '13 at 21:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.