Kali setup for the first time

Setup screen resolution

  • sudo nano /etc/default/grub

    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
  • sudo update-grub
  • sudo reboot

Setup SSH

  • Check if already installed
    sudo apt list openssh-server
  • Install if doesn’t exist
    sudo apt install openssh-server
  • When disconnected while updating
    sudo dpkg --configure -a


  • Check for existing screen
    screen -ls
  • Take over existing screen
    screen -rd xxxxx

Backup the original keys as a precaution

  • Make new directory
    sudo mkdir /etc/ssh/default_keys
  • Move existing to new directory
    sudo mv /etc/ssh/ssh_host_* /etc/ssh/default_keys/
  • Regenerate the keys
    sudo dpkg-reconfigure openssh-server

Make configuration change

  • Change sshd_config
    sudo nano /etc/ssh/sshd_config

Enable SSH service to start permanently on reboot

  • Enable ssh service on boot
    sudo systemctl enable ssh.service
  • Disable ssh service on boot
    sudo systemctl disable ssh.service
  • To start immediately without reboot
    sudo systemctl start ssh.service
  • Temporarily start up
    sudo systemctl start ssh.socket
  • Temporarily stop
    sudo systemctl stop ssh.socket
  • Check status
    sudo systemctl status ssh.service
  • Stop ssh service
    sudo systemctl stop ssh.service

Start xrdp

  • Install
    sudo apt-get install xrdp
  • Start
    sudo systemctl start xrdp
    sudo systemctl start xrdp-sesman
    (don’t need this)
  • Start on boot
    sudo systemctl enable xrdp
    sudo systemctl enable xrdp-sesman (don’t need this)


  • Create aliases¬†
    nano ~/.bash_aliases
  • e.g
    alias pinggoogle='ping google.com'
  • Load
    . ~/.bashrc

Install git

  • Install git
    sudo apt install git
  • Clone
    git clone https://github.com/abc/xyz.git

Create a low privileged user

  • Create a new user
    sudo adduser test
  • Add to sudo group
    sudo usermod -aG sudo kim

Install terminal multiplexer tilix

  • Install tilix
    sudo apt-get install tilix
  • Launch

Install other packages

  • E.g. rfid
    sudo apt update && sudo apt install kali-linux-rfid

Install latest TOR

  • Come back later

Config file sharing with syncthing

  • Refer here
  • Finally install
    sudo apt-get install syncthing
  • Run for the first time

Install code editor

  • Try atom

Explore USB Rubber Ducky

  • ¬†


Leave a Comment

Your email address will not be published. Required fields are marked *