This project provides a script to set up compatibility for running Rocky Linux applications on FreeBSD. It includes a Makefile for streamlined installation and uninstallation of the script.
- Simplifies the setup of Linux compatibility on FreeBSD.
- Provides a script for configuring the necessary compatibility settings.
- Includes a Makefile for easy installation and removal.
- FreeBSD 14 or later.
- Superuser (root) privileges to install and configure compatibility settings.
- Ensure the
linux_enable
option is set in/etc/rc.conf
if required.
-
Clone the repository:
git clone https://github.com/vimanuelt/Rocky_Linux_Compatibility_Setup_for_FreeBSD.git cd Rocky_Linux_Compatibility_Setup_for_FreeBSD
-
Install the script using
make
:sudo make install
By default, the script will be installed to
/usr/local/sbin/
assetup_linux_compatibility.sh
.
Run the script to set up compatibility:
sudo setup_linux_compatibility.sh
Once installed and configured, please reboot
your computer.
You can access a bash shell in the Rocky Linux compatibility environment by running:
sudo chroot /compat/linux /bin/bash
This provides a Linux environment within FreeBSD for testing or running Linux applications.
To remove the script:
sudo make uninstall
This will delete the installed script from /usr/local/sbin
.
The installation location can be customized by setting the PREFIX
and INSTALL_DIR
variables:
sudo make install PREFIX=/custom/path
Similarly, you can specify a custom destination during uninstallation:
sudo make uninstall DESTDIR=/custom/path
The clean
target is a placeholder for future use. Currently, it does nothing:
make clean
This project is licensed under the MIT License.
Contributions, issues, and feature requests are welcome! Please open an issue or submit a pull request on GitHub.
Created by Vimanuelt. Contributions by the FreeBSD and Linux communities.
Note: This script is provided as-is and should be tested in a non-production environment before deployment.