Skip to content

vimanuelt/Rocky_Linux_Compatibility_Setup_for_FreeBSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rocky Linux Compatibility Setup for FreeBSD

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.

Features

  • 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.

Prerequisites

  • 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.

Installation

  1. Clone the repository:

    git clone https://github.com/vimanuelt/Rocky_Linux_Compatibility_Setup_for_FreeBSD.git
    cd Rocky_Linux_Compatibility_Setup_for_FreeBSD
  2. Install the script using make:

    sudo make install

    By default, the script will be installed to /usr/local/sbin/ as setup_linux_compatibility.sh.

Usage

Run the script to set up compatibility:

sudo setup_linux_compatibility.sh

Once installed and configured, please reboot your computer.

Accessing a Rocky Linux Bash Shell

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.

Uninstallation

To remove the script:

sudo make uninstall

This will delete the installed script from /usr/local/sbin.

Customization

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

Cleaning Up

The clean target is a placeholder for future use. Currently, it does nothing:

make clean

License

This project is licensed under the MIT License.

Contributions

Contributions, issues, and feature requests are welcome! Please open an issue or submit a pull request on GitHub.

Author

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published