> For the complete documentation index, see [llms.txt](https://ret2basic.gitbook.io/ctfnote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ret2basic.gitbook.io/ctfnote/computer-science/linux/setup.md).

# Setup

## Installing Kali Linux

Download the latest Kali VM:

{% embed url="<https://www.kali.org/get-kali#kali-virtual-machines>" %}
Kali VM
{% endembed %}

Import it into VMware (or VirtualBox) and do the following things:&#x20;

1. Install [pimpmykali](https://github.com/Dewalt-arch/pimpmykali)
2. Install [powerupmykali](https://github.com/ret2basic/powerupmykali)
3. Open `/usr/bin/google-chrome` and change the very last line to `exec -a "$0" "$HERE/chrome" "$@" --no-sandbox`
4. Install Dropbox
5. Install [CryptoHack for Sublime Text](https://github.com/cryptohack/sublime-theme)

Don't forget to take a snapshot of your VM!

## Terminator

### Installation

```bash
apt install terminator
```

### Shortcuts

* **Copy:** Ctrl+Shift+C
* **Paste:** Ctrl+Shift+V
* **Split Horizontally:** Ctrl+Shift+O
* **Split Vertically:** Ctrl+Shift+E
* **Close:** Ctrl+Shift+W

### Infinite Scrollback

One important feature of Terminator is **unlimited terminal history**, which is called **"Infinite Scrollback"** in Terminator terminology. This feature comes in handy when you want to read the long WinPEAS output. Inside terminator, right click and go to "Preferences -> Profiles -> Scrolling". Check the "Infinite Scrollback" option:

![Infinite Scrollback](/files/-MgZDgc_qfLC0f5LYVXg)

## Sublime

### Installation

Install the GPG key:

```bash
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -
```

Ensure apt is set up to work with https sources:

```bash
apt install apt-transport-https
```

Install Dev version:

```bash
echo "deb https://download.sublimetext.com/ apt/dev/" | tee /etc/apt/sources.list.d/sublime-text.list
```

Update apt sources:

```bash
apt update
```

Install Sublime Text:

```bash
apt install sublime-text
```

### Multiple Cursors

#### Add multiple cursors with mouse

Hold **"Ctrl"** and **left click** the place where you want the multiple cursor to be added.

#### Add multiple cursors for many lines

Select a block of text and press **"Ctrl+Shift+L"**. Multiple cursors will be added to the end of each line.
