First (X) things to do after installing Kali Linux

This page is being updated for Kali Rolling (2016.2)

A long time ago I discovered a guide on the first 20 things to do after installing Kali. It's not a bad start, but I don't find most of those things super useful. I found myself coming back to it time and again though to copy the few things I did find useful, such as the archive manager, repository fixes, and GPU processing.

Finally, I'm starting my own list. The first (X) things to do, because this list will grow and change...

1) Update, install VMware tools, and reboot.

apt-get update
apt-get install open-vm-tools-desktop fuse

2) New Setup Script

Rather than make 30 steps to do everything, I tried to roll it all into a script on GitHub that will be easier to update and modify.

wget -O
chmod 755

3) Uncomment ls aliases, add tab complete

vim .bashrc
:set number #displays line numbers
#around line 87 you should see "some more ls aliases"
#un-comment all of these

# Add the following to the very bottom
# Bind tab to menu-complete, so tabbing cycles through options
bind TAB:menu-complete

4) Install Scrub/Securely Empty Trash

Thanks to user "testingresults" for this script. Requires scrub

  • Create a script, wherever you like, I use ~/
  • Save this to it and make it executable (chmod +x
  • Run it to securely empty your trash!

find ~/.local/share/Trash/files ~/.local/share/Trash/info -type f -print0 | xargs -0 -I{} /usr/bin/scrub -Sfp random {}

find ~/.local/share/Trash/files/* ~/.local/share/Trash/info/* -depth | while read i
    cleant=$(head -c17 /dev/urandom | tr -d [[:space:]] | tr -d [[:punct:]])
    mv "$i" ~/.local/share/Trash/files/"$cleant" 2> /dev/null

rm -rf ~/.local/share/Trash/files/*

5) Install avconv if you use screen capturing

.webm is a great file format, if you don't plan on doing anything with it. However, there aren't a ton of programs that import and export it, and even less so on Linux. We can easily convert them to H246 MP4 format (or any other) from the command line with avconv (previously ffmpeg) though.

avconv -i InFile.webm -c:v libx264 -crf 18 -c:a aac -strict experimental OutFile.mp4

There's some explanation of the flags in that command on Super User. I find -crf 18 gives you pretty good output.

6) Turn off the screen lock

This is somewhat optional, but I generally use Kali in a VM, and the screen lock gets really annoying when I already have one on my Windows machine.

Under settings, select power and change "Blank screen" to never. Go back to the main settings menu, and under privacy, change "Screen lock" to off.

7) Install NVIDIA Drives

This is always a mess... however, it seemed to be easy this time around.
Manually find/extract your correct driver on the GeForce page
The rest of this can probably be placed in a better order, but here's what worked for me.

Download drivers
CTRL ALT F1 and login
init 3
service gdm stop

Let it try to disable noviou drivers
install will fail, reboot
init 3
service gdm stop
try install agian

need kernel source files
aptitude -r install linux-headers-$(uname -r)

try install agian

unable to do the 32bit compatibility (oh well)

do the auto x configuration thing


8) Setup Ctrl+Alt+Del equivalent

Go to Settings -> Keyboard -> Shortcuts
Press the + in the lower left to create a new shortcut
Name it what you want, set the shortcut to...
Click add and set the shortcut to your preferred keys.



Infosec analyst, lover of passwords, and owner of a giant goofy puppy.

Read More
First (X) things to do after installing Kali Linux
Share this