FreeBSD Jail Allow Sound And Flash Access

I am running KDE desktop within FreeBSD jail. How do I get audio working from inside the FreeBSD jail so that flash will also work?

The devfs provides an interface to manipulate properties of devfs for jail. It can be controlled using /etc/rc.conf file only. First shutdown your desktop running inside the jail. You also need to stop jail service
# /etc/rc.d/jail stop
Edit /etc/rc.conf as follows:
# vi /etc/rc.conf
Append the following config directives:
jail_xfcedesktop_devfs_ruleset="devfsrules_desktop_jail"
Note: replace xfcedesktop with your actual jail name. Save and close the file. Start the jail, enter:
# /etc/rc.d/jail stop
You can now use audio inside the FreeBSD jail system.

This entry is 6 of 6 in the FreeBSD Jail Operating System-level Virtualization Tutorial series. Keep reading the rest of the series:
  1. Setup FreeBSD Jail With ezjail
  2. FreeBSD Jail Allow Ping / tracerouter Commands
  3. FreeBSD Jail Add Multiple IPv4 / IPv6 Address
  4. FreeBSD Jail Access Private Network Via NAT and PF
  5. How To Upgrade FreeBSD Jail ( OS Level Virtualization )
  6. FreeBSD Jail Allow Sound And Flash Access

ADVERTISEMENTS

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • mobb Sep 1, 2011 @ 12:36

    Thanks for this howto, only one mistake:
    The last command should be # /etc/rc.d/jail start

  • matias Jan 27, 2012 @ 20:12

    Great series. A quick question: do you think one could run pcbsd from within a jail?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.