Skip to content

The Basics

Jakob Pennington edited this page Feb 27, 2019 · 5 revisions

Setting Up Kali Linux

Firstly, make sure that apt-get is up to date with the with the latest package repositories. During the installation process, you will be asked whether you want to use online repositories or just those included in the installation image. If you forget to set this option, just add the repositories to the sources.list file located at /etc/apt/sources.list.

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Then, once the repositories have been added, run the following commands to clean the apt-get cache, update the package list from the listed repositories, then update installed packages to their latest versions.

apt-get clean
apt-get update
apt-get upgrade

Kali on HDPI Screens

On HDPI screens, such as the Surface Pro 4, fonts, icons and many other aspects of the interface will appear small on the screen and difficult to use. By default, Kali uses the GNOME to manage the desktop interface. The scaling of the interface can be increased in order to make the interface look and feel better on a HDPI screen.

gsettings set org.gnome.desktop.interface scaling-factor 2

Basic Linux Commands

Add a new user:

adduser <name> [<group>]

Nano

ctrl+c          Show line numbers
ctrl+w          Search within the file
ctrl+x, y       Safe the file with the same filename
ctrl+_          Jump to a line

One-Liners

# Base64 decode a string
echo -ne BASE64_STRING | base64 -d

# Copy a file's contents to clipboard
xclip -sel c < FILE_NAME