Skip to content

Instantly share code, notes, and snippets.

@LeoriumDev
Last active May 4, 2025 13:25
Show Gist options
  • Save LeoriumDev/906bc52cbd564c12ec16563e081ec3e0 to your computer and use it in GitHub Desktop.
Save LeoriumDev/906bc52cbd564c12ec16563e081ec3e0 to your computer and use it in GitHub Desktop.
Launch an x86_64 virtual machine on Apple Silicon (ARM64) using Lima and QEMU, with your home directory mounted as writable.
limactl start --arch x86_64
@LeoriumDev
Copy link
Author

LeoriumDev commented May 4, 2025

Change hostname (change lima-default to whatever you like)

sudo hostnamectl set-hostname newname
sudo reboot
lima

@LeoriumDev
Copy link
Author

Fix autocomplete issue

Install bash-completion

sudo apt update
sudo apt install bash-completion

add the following to ~/.bashrc

if [ -f /etc/bash_completion ]; then
  . /etc/bash_completion
fi

Update the shell
source ~/.bashrc
add the following to ~/.inputrc

set show-all-if-ambiguous on
set completion-ignore-case on
TAB: menu-complete
"\e[Z": menu-complete-backward

bind -f ~/.inputrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment