The these are some general notes about running Linux (Ubuntu and Debian) under Parallels on MacOS X.
Parallels Tools for Ubuntu 20.10 on Parallels 15
Although Ubuntu 20.10 installs without any issues under Parallels 15, due to procfs and mmap changes in the Linux kernel v5.6 (and newer), the Parallels Tools for Linux that are included in Parallels 15 will not install. See, e.g.:down_read(&mm->mmap_sem)
needs to
replaced with mmap_read_lock(mm)
and
up_read(&mm->mmap_sem)
needs to
replaced with mmap_read_unlock(mm)
(See, e.g.,
https://sourceware.org/git/?p=systemtap.git;a=blobdiff;f=runtime/linux/access_process_vm.h;h=327d0e611f47cbf445d470e383649afc9220a957;hp=94c480496c75f5afcfe8615e10d5e4ac78fd627e;hb=37066e2c3a9d9f48fc01b13ec0493b1c67551275;hpb=6af5df835df110552fa2209a403d04e3a84d8997)
https://askubuntu.com/questions/158871/how-do-i-enable-the-source-code-repositories
$ sudo apt-get install gcc make dkms libelf-dev bison flex linux-source
See also: https://kb.parallels.com/en/113394, https://wiki.ubuntu.com/Kernel/SourceCode.
$ mkdir -p ~/Documents/pt_mod
$ mkdir -p ~/Documents/pt
$ mkdir -p ~/Documents/pt_mod
$ cd ~/Documents/pt
$ cp -r /media/cdrom0/* .
$ cd ~/Documents/pt_mod
$ tar -xvzf ../pt/kmods/prl_mod.tar.gz .
$ chown -R "$USER" .
$ mv ../pt/kmods/prl_mod.tar.gz ../pt/kmods/prl_mod-orig.tar.gz
$ cd ~/Documents/pt_mod
$ patch -p0 < ../pt_mod/prl_kmods_u20-10.patch
$ cd ~/Documents/pt_mod
$ make -f Makefile.kmods
$ make -f Makefile.kmods clean
$ cd /usr/src/linux-headers-5.8.0-44-generic
$ sudo make oldconfig
$ cd ~/Documents/pt_mod
$ tar -zcvf ../pt/kmods/prl_mod.tar.gz .
$ cd ~/Documents/pt/kmods
$ make -f Makefile.kmods
$ cd ~/Documents/pt/
$ sudo ./install
$ sudo snap remove --purge snap-store
$ sudo snap remove --purge gtk-common-themes
$ sudo snap remove --purge gnome-3-34-1804
$ sudo snap remove --purge core18
$ sudo snap remove --purge snapd
$ snap list
$ sudo umount /var/snap
$ sudo apt autoremove --purge snapd gnome-software-plugin-snap
$ sudo apt-mark hold snapd
$ sudo rm -rf /var/cache/snapd/ /var/snap /var/lib/snap
$ rm -rf ~/snap
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo ufw enable
$ sudo apt install ufw
(Optional) Install a GUI firewall:
$ sudo apt install gufw
Enable Gnome Tweaks and Gnome Shell Extensions (if using Gnome)
$ sudo apt install gnome-tweaks gnome-shell-extension-prefs
$ gsettings set org.gnome.desktop.background picture-uri ""
$ sudo systemctl disable --now avahi-daemon.socket avahi-daemon.service
$ sudo systemctl disable --now cups.service cups.socket cups.path
$ sudo apt-get remove --purge nano
$ sudo apt-get remove --purge "libreoffice*"
$ sudo apt-get remove --purge parole
$ sudo apt-get remove --purge exfalso
$ sudo apt-get -s autoremove
$ sudo apt-get clean && sudo apt-get autoremove
$ dd if=/dev/sr0 bs=8M of=name.iso
$ sudo apt install xorriso
$ xorrisofs -v -J -r -V label -o name.iso
path
From: https://wiki.debian.org/BurnCd#Make_an_ISO_9660_image_file
Getting the Debian Version/Release
$ sudo apt-get install lsb-release
$ lsb_release -da
From: https://linuxconfig.org/check-what-debian-version-you-are-running-on-your-linux-system
$ sudo apt install screen
$ sudo apt install libbsd-dev
From: https://stackoverflow.com/questions/19671152
dncrypt-proxy
:
$ sudo apt install dnscrypt-proxy
Edit /etc/dnscrypt-proxy/dnscrypt-proxy.toml
as needed.
dnscrypt-proxy
:
$ sudo systemctl restart dnscrypt-proxy
Use NetworkManager (e.g. nmtui
) to set the
DNS server to 127.0.2.1 and enable the ignore DNS servers set
by the DHCP server.
$ sudo systemctl restart NetworkManager
From: https://linuxconfig.org/how-to-encrypt-your-dns-with-dnscrypt-on-ubuntu-and-debian