Skip to main content

Posts

Showing posts from April, 2025

Run windows apps through Wine emulator on Mac OS Apple Silicon

  https://macappstore.org/whiskey/   About the App App name : Whiskey App description : whiskey (App: Whiskey.app) App website :  http://usewhiskey.com/ Install the App Press  Command+Space  and type  Terminal  and press  enter/return  key. Copy and paste the following command in Terminal app: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"  and press  enter/return  key. Wait for the command to finish. If you are prompted to enter a password, please type your Mac user's login password and press ENTER. Mind you, as you type your password, it won't be visible on your Terminal (for security reasons), but rest assured it will work. Now, copy/paste and run this command to make  brew  command available inside the Terminal:  echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile Copy and paste the following command: brew install --cask whiskey Done! You can ...

pivot_root vs chroot vs switch_root

The chroot command modifies the root directory for a process, limiting its access to the rest of the filesystem. This is useful for security, containerization, or testing purposes. The process running under chroot has no knowledge of anything outside its jail, making it appear as if it is running on the root filesystem. pivot_root vs chroot vs switch_root 1 2 3 In Linux, pivot_root, chroot, and switch_root are commands used to change the root filesystem of a process. Each has its specific use cases and functionalities. pivot_root The pivot_root command is used to change the root filesystem of the current process and its children. It swaps the current root filesystem with a new one, making the old root accessible at a specified location. This command is typically used during the boot process when the system transitions from an initial ramdisk (initrd) to the real root filesystem 1 . Example: mount  /dev/hda1 /new-root cd  /new-root pivot_root . old-root exec chroot  . sh ...