OS: Installing Kali Linux on MacBook Air ver. 10

Last Updated on September 25, 2022 by shibatau

VII.4 is added.

I. What is Kali Linux

Kali Linux is an open-source, Debian-based Linux distribution geared towards various information security tasks, such as Penetration Testing, Security Research, Computer Forensics and Reverse Engineering.

KALI

II. Is Kali Linux right for you?

Kali is a Linux distribution geared towards professional penetration testers and security specialists. Certainly, it is but if you are interested in Internet security and want to lean about penetration tests. You shouldn’t hesitate to install Kali on your computer. Actually, you can also use Kali for daily use.

You can use Kitty + Neovim like this:

III. Iinstalling Kali Linux

I have installed Kali Linux on MacBook Air. MacBook doesn’t have any Ethernet port and you cannot access the internet via WiFi during installation. Actually, you can install Kali Linux on MacBook Air without accessing the internet, but it is difficult or annoying to set for WiFi after installation. I strongly recommend that you should buy an Ethernet adapter for MacBook Air like this.

You can learn how to install Kali Linux step by step here:

Install Kali Linux 2022.2 – Step by Step with Screenshots

Root user no longer default:

Kali Linux 2020.1 Switches To Non-Root User By Default, New Single Installer Image

IV. The US English Keyboard Layout

I have accustomed to the US English keyboard layout and I will use my MacBook Air with the Japanese keys like this:

~
Use Unicode and type:
<Ctrl + Shift + u> + 7 + e +Enter

`

Use Unicode and type:
<Ctrl + Shift + u> + 6 + 0 + Enter

V. Installing Kitty Terminal

Run the following command in your terminal.

sudo apt update && sudo apt install kitty

You can learn more here:

Kitty Terminal – An Easy Installation Guide

VI. Installing Fish Shell & Oh My Posh

1.Installing Fish Shell

Run the following command in your terminal:

sudo apt install fish -y

You can learn more here:

How to install Fish Shell on Debian 10

2.Installing Oh My Posh

You can lean how to install Oh My Posh here:

How to Setup Oh my Posh On Ubuntu

At first I have installed Oh My Posh with Homebrew but I had some trouble when I tried to install Pyenv and Poetry. So I deleted Homebrew and Oh My Posh and then I have installed Oh My Posh again without using Homebrew. When you don’t use Homebrew and downloaded the Oh My Posh themes in ~/.poshthemes, please add the following line to ~/.config/fish/config.fish when you use the jandedobbeleer theme.

oh-my-posh init fish --config ~/.poshthemes/jandedobbeleer.omp.json | source

The image below is the jandedobbeleer theme. The numbers, 3.9.7 means the Python version installed in the directory with Pyenv.

VII. Changing the desktop background image

VIII. Installing Neovim and plugins

1.Installing Neovim

You can learn how to install Neovim here:

How To Install neovim on Kali Linux

2.Setting up Neovim with Lua

I have written about how to set up Neovim with Lua:

How to set up Neovim with Lua

3.Installing Telescope

You can quickly find a file with Telescope.

You can learn how to set up Telescope here:

Turning Neovim into a Full-Fledged Code Editor with Lua

4.Installing rnvimr

You can use ranger in a floating window. You can open the window with the command:

:RnvimrToggle

You can learn how to install rnvimr here:

https://github.com/kevinhwang91/rnvimr

5. Journaling using a separate Neovim configuration file

You can learn how to set up for the journaling here:

Neovim for journalin

IX. Command line tools

1.trash-cli

You can learn how to install trash-cli here:

https://github.com/andreafrancia/trash-cli

2.Ranger

You can learn how to install Ranger here:

Ranger on Linux – A Complete Terminal File Manager For Linux

If you want to show preview images, please refer to:

Installing Ranger and Setting Image Viewer with Kitty

3.Please

Please is a simple command line Todo manager. Just run the following command in the terminal:

pip install please-cli

You can learn more here:

4.MOC music media player

You can learn how to install and use MOC here:

3 Music Media Players for the Debian 10 Terminal

X. Languages

1.Pyenv

You can learn how to install Pyenv here:

https://github.com/pyenv/pyenv-installer

Setting up Python with Pyenv and Poetry on Debian

I couldn’t open Pyenv though I followed the above instructions. The following has worked for my environment:

Add the four lines to the .bashrc file and .zshrc file.

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"

I will write here when I find another solution.

2.Julia

I have installed Julia with Snaps

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Run the commands in the terminal:

sudo apt update
sudo apt install snapd
sudo systemctl start snapd 
sudo snap install core
sudo snap install julia --classic

You can learn more here:

Install julia on Debian

https://stackoverflow.com/questions/66008918/cannot-communicate-with-server-post-http-localhost-v2-snaps-discord-dial-uni

I run the following command in the terminal to open Julia,

julia

but I got an error like this:

The command could not be located because ‘/snap/bin’ is not included in the PATH environment variable

Then, I run the command:

source /etc/environment

And then I run the command again:

julia

Here is the image when Julia is opened in the terminal:

Have you got an error like this?

Snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks

Then, run the command in the terminal.

sudo apparmor_parser -r /etc/apparmor.d/*snap-confine*
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap-confine*
systemctl enable --now snapd.apparmor.service

You can learn more about Snaps here:

https://stackoverflow.com/questions/57121916/the-command-could-not-be-located-because-snap-bin-is-not-included-in-the-path

https://stackoverflow.com/questions/70053614/snap-confine-has-elevated-permissions-and-is-not-confined-but-should-be-refusin

3.Poetry

You can learn how to install Poetry here:

Poetry: Dependency Management for Python

https://python-poetry.org/docs/master/#installing-with-the-official-installer

Run the following code on Linux.

curl -sSL https://install.python-poetry.org | python3 -

After that, add the following to your .bashrc or .zshrc file:

export PATH="/home/USERNAME/.local/bin:$PATH"

4.RStudio

Not written yet.

XI. Applications

1.Krita

You can learn how to install Krita here:

How To Install krita on Debian 11

2.Setting up Firefox for watching Netflix

You can learn how to enable DMR.

Here’s How to Watch Netflix on Linux Using Firefox

Manage tasks and to-do lists with ‘Please’ from command line In Linux and Mac

3.Tor Browser

Run the command in the terminal:

sudo apt update
sudo apt install -y tor torbrowser-launcher

Run the command in the terminal to open Tor Browser:

torbrowser-launcher

You can learn more in detail in this video:

About shibatau

I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school. I'm interested in new technology, especially machine learning and have been learning R language for two years and began to learn Python last summer. Listening toParamore, Sia, Amazarashi and MIyuki Nakajima. Favorite movies I've recently seen: "FREEHELD". Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro. Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences". Favorite phrase: Salvation by Faith. Twitter: @shibatau

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.