Home Kali Linux Kali Linux 2.0 Top 10 post install tips by Offensive Security

Kali Linux 2.0 Top 10 post install tips by Offensive Security

by blackMORE

With Kali Linux 2.0 released and everyone started upgrading, it’s imperative that we try to follow Official guides first.

Kali Linux 2.0 Top 10 post install tips by Offensive Security

Image Courtesy: Offensive Security

I get many readers who are using Kali Linux and will follow my guides (unfortunately, some would follow my guides first than following Official guides, duh… I’m honored but seriously … come on mate!) I was notified via email/twitter/Facebook message that some of my posts requires updating. This post was originally posted by Offensive Security, the good people who worked endlessly to create Kali Linux which contains valuable information’s. I am re-sharing this with my readers hoping that you will try to follow Kali Linux 2.0 Top 10 post install tips by Offensive Security first before you try my guide as I’ve had just 24 hours to evaluate my previous posts and correct those whereas the dev team at OffSec had months. So obviously, their posts and instructions will be more accurate than mine.

I’ve updated some parts of it as the official guides didn’t either explain much or didn’t had images for new users. Hope that’s OK!

With Kali 2.0 now released, we wanted to share a few post install procedures we find ourselves repeating over and over, in the hopes that you will find them useful as well. We’ve also slapped in some answers to common questions we’ve been getting.

This is re-blogged from Offensive Security’s blog post. Re-blogging it to raise awareness. Please visit Offensive Security Blog page for official updates.

Kali Linux 2.0 Top 10 post install tips by Offensive Security

Here is our top 10 list:

Enable or Disable the intelligent sidebar option

Some people love it, some people hate it. In smaller resolutions, it can be annoying. We’re talking about the disappearing sidebar on the left of the screen. Here’s a short video how to change this behaviour.

Add your SSH public key to Kali 2.0

Kali Linux 2.0 takes on the Debian SSH configuration option, default since Jessie, which disallows root logins without a key.

root@kali:~# grep Root /etc/ssh/sshd_config
 PermitRootLogin without-password

The less preferred alternative, is to change the PermitRootLogin parameter to “yes”, and restart the SSH server, which will allow remote password root logins. For safer remote root SSH access, add your public key to the authorized_keys file.

Install Nvidia drivers if you need them

If you have an NVIDIA graphics card, you should follow these instructions to get the NVIDIA drivers installed in Kali 2.0.

Install VMWare or Virtualbox guest tools if you need them

Our instructions on installing virtual guest tools haven’t changed much and work well on the latest version of VMWare (Workstation and Fusion), as well as VirtualBox.

Here’s a detailed guide with explanation for VirtualBox:

Correct way to install Virtualbox Guest Additions packages on Kali Linux

Disable the Screen Lock Gnome feature

We missed disabling this feature in our official builds, but will do so in an upcoming update and future ISO releases. This is the fastest way to disable the screen lock Gnome feature:

Don’t add extra repositories to your Kali 2.0 install

If for some reason you chose “no” when asked “use a network mirror” during you Kali installation, you may be missing some entries in your sources.list file. If this is the case, check the official repository list that should be in that file. Despite what many unofficial guides instruct you to do, avoid adding extra repositories to your sources.list files. Don’t add kali-dev, kali-rolling or any other Kali repositories unless you have a specific reason to – which usually, you won’t. If you must add additional repositories, drop a new sources file in /etc/apt/sources.list.d/ instead.

Kali Linux 2.x – Kali Sana details and explanations can be found in adding official Kali Linux 2.0 – Kali Sana Repositories page.

Add a non-root user if you’re not comfortable running as root

Kali Linux got only root user by default. While most applications require root access, it’s always a good idea to add a second user. Open terminal and type following to create new user (replace user1 with your desired user name)

useradd -m user1

(Note: -m means create home directory which is usually /home/username)

How to add remove user - Standard usernon-root - in Kali Linux - blackMORE Ops -2

Now set password for this user

passwd user1

Enter desired password twice Add user to sudo group (to allow user to install software, allow printing, use privileged mode etc.)

usermod -a -G sudo user1

(Note: -a means append or add and –G mean to specified group/groups) Change default shell of previously created user to bash

chsh -s /bin/bash user1

To learn more, follow this excellent and detailed post on adding remove user (standard user/non-root) in Kali Linux. This post explains how to add a user with all user directories already in place (thereby avoiding “Could not update .ICEauthority var/lib/gdm3/.ICEauthority” or any error containing .ICEauthority or permission in general.

Avoid installing Flash Player

Just don’t.

Keep the Kali system up to date

We pull upstream updates from Debian 4 times a day. This ensures that security updates are implemented in Kali on an ongoing basis. You should keep your system up to date by regularly running the following commands:

 apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

Avoid manual installations of tools in FSH defined directories

There’s several ways you can use Kali – either as a “throw away pentesting machine” or as a “long term use OS“. The “throw away” method entails setting up Kali for a one off engagement or short term use, and then killing off the OS when done (this usually happens in virtual environments). The “long term use” use case describes people who want to use Kali on an ongoing basis for day-to-day use. Both methods are perfectly valid, but require different treatment. If you plan to use Kali on a day-to-day basis, you should avoid manual installs of programs in FSH defined directories, as this would conflict with the existing apt package manager.

My comments

I am trying to update old blog posts as fast as I can. Readers, do understand Offensive Security/Kali Linux Dev team got way more people (compared to me only) and their instructions are to be followed first. I am happy to update/modify any posts if there’s a fault. If you’ve found an issues with any of the posts, do correct me.

Thanks and enjoy your Kali Linux 2.0 – Kali Sana. Re-share this post to raise awareness.

You may also like

48 comments

336sec August 13, 2015 - 11:15 pm

Nice work been following for awhile now you really should get back to YouTube dude you could be a hell of a youtuber.

Reply
blackMORE Ops August 14, 2015 - 12:10 pm

Hi 336sec,
Thanks mate.
I am still evaluating that idea.
-BMO

Reply
Kanhaiya Murarka August 20, 2015 - 2:55 am

In my opinion you should do both. It would be best

Reply
My Name September 7, 2015 - 1:40 am

As far as you don’t forget the blogging it would be nice :) videos are very helpful some times.

Reply
DragonLee August 14, 2015 - 8:36 am

When I follow the instructions from the link above to install Nvidia drivers, I get a lot of these: “Err http://http.kali.org/kali/ sana/non-free nvidia-alternative amd64 340.76-2kali1 404 Not Found

Reply
lol August 14, 2015 - 6:13 pm

why there are no “places” tab at the top” and I didn’t find any “dash to dock” in extension. Also there is no “settings” available for me. can you help ;)

Reply
Shivanshu Tiwari August 14, 2015 - 7:46 pm

vlc is not running in kali linux 2.0

Reply
vlc_as_root August 16, 2015 - 7:17 am

vi /usr/bin/vlc

search for geteuid and replace it with getppid

Save file & Exit

Reply
Shivanshu Tiwari August 17, 2015 - 3:28 am

I have tried this but there were no changes

Reply
Sarad August 27, 2015 - 1:25 am

same happened in my case when i was running as root bt after i created an user account it worked fine

Reply
336sec September 2, 2015 - 12:20 pm

dont run vlc as root run it as standerd user it will work

Reply
Mex5150 October 16, 2015 - 3:12 am

If you really want to run vlc as root, open /usr/bin/vlc with a hex editor, find geteuid and replace it by getppid save it and you’re good to go.

Reply
medic233 August 16, 2015 - 8:19 am

Still running intomajor issues installing Chrome.
Followed your information, used gksu -u chromeuser google-chrome and here is what followed:
(google-chrome:7464): dconf-CRITICAL **: unable to create directory ‘/run/user/0/dconf’: Permission denied. dconf will not work properly.
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
[7498:7498:0815/180334:ERROR:sandbox_linux.cc(345)] InitializeSandbox() called with multiple threads in process gpu-process

Also the built in flash keeps crashing.

Ideas?

Reply
naahna@opentrash.com November 16, 2015 - 9:46 pm

what did you exactly not understand of this “Avoid installing Flash Player

Just don’t….. ” hint ??? besides kali shouldnt be your everyday os…. on another sidenote its pretty well known that flash is a huge security issue and recommended simply everywhere to leave… firefox ditched flash for a reason! wellknown like said…. second the advice JUST DONT!

Reply
Aman August 16, 2015 - 3:27 pm

Unable to install VirtualBox Guest Additions as by the method you have described in the link given.

Reply
Raja Dawood Yaqoob August 16, 2015 - 8:08 pm

how can i use Wi-Fi on kali linux

Reply
Shawn Donnelly August 27, 2015 - 6:14 am

Hey…I’m rather new to linux and even though it kind of is BEGGING to not receive any help by asking such a generalized question here, I’m still going to ATTEMPT (I can’t stress that word enough as I am still very much learning myself) to try and point you in the right direction because I am very familiar with the growing pains one must endure when attempting to learn linux (ESP if you’ve only ever used MS Windows for the most part)….Are you aware of the type of wireless card your machine is using? There was an issue with Kali 2.0 where a lot of Intel wireless cards that come built into a huge amount of PC’s wasn’t able to be installed via the GUI installation version of the OS…however, I ended up tracking down an answer that I believed to be adequate which came from Intel….follow the link…be prepared to do a little reading/homework….Hopefully this helps.

http://www.intel.com/support/wireless/wlan/sb/CS-034398.htm

Reply
vRuS x0Ne August 16, 2015 - 10:33 pm

where is Main Menu ?? .. i cant find him … in kali 1.x it shows in Applications> System Tools> Perefrences > Main Menu

i want to add cobaltstrike and havij to the Applications Menu … Please Help me

Reply
ShatStank August 18, 2015 - 5:45 am

to get main menu use $apt-get install alacarte then open it from your applications list.Hope that helps:)

Reply
joshua September 11, 2015 - 1:05 pm

it works man thank you very much

Reply
Kaamdar November 21, 2015 - 7:33 pm

NOW APT-GET INSTALL ALACARTE DONT WORK

Reply
Hitman August 19, 2015 - 5:48 am

having issues setting up a PIA VPN in Kali 2.0 – can’t find any resources that work with 2.0

Reply
blackMORE Ops August 19, 2015 - 4:53 pm

Check your sources.list.

Reply
Hitman August 20, 2015 - 8:54 am

Thanks Blackmore – that worked for getting it to download….butow – how do I get it to launch?

Reply
Scoggin August 20, 2015 - 8:09 am

Managed to get it working by downloading the PIA openvpn zip file https://www.privateinternetaccess.com/openvpn/openvpn.zip extracting it to a folder you’ll remember, open up a terminal and navigate to said folder then type in “openvpn –config US\ East.ovpn” . It’ll prompt you for your username and p/w to connect. Perform an ifconfig and check if your tun0(1) is up :)

Reply
g5 August 21, 2015 - 2:01 am

I get “error opening configuration file”

Reply
Hitman August 23, 2015 - 6:31 am

So I tryied running PIA VPN from CLI but the VPN does not connect completely. It says “Initialization Sequence Completed” however the browser does not open any pages.

Also ifconfig output displays: tun0-00

Any input would be appreciated – thanks

Reply
anonymityisgood January 10, 2016 - 12:26 am

Did you figure out openvpn/pia yet? If not I may be able to help you.

Reply
duxim August 21, 2015 - 7:28 pm

My recommendation is to download Light version of Kali 2.0 , install it and use
apt-get install kali-linux-all
to update Kali to full version
Also one of post install useful step is
apt-get install unrar unace rar unrar p7zip zip unzip p7zip-full p7zip-rar file-roller -y

Reply
AndrewS September 7, 2015 - 5:16 am

trying to install NVidia drivers to activate CUDA password cracking on my GeForce GTX 750 Ti.

On a clean VirtualBox image of Kali 2.0, I do the following:

apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms

per the instructions. The last install complains in a Configuring xserver-xorg-vidso-nvidia box:

Manual configuration required to enable NVIDIA driver.
The NVIDIA driver is not yet configured; it needs to be enabled in xorg.conf before it can be used.
Please see package documentation for instructions.

Is this correct? Does this need to be fixed?

Reply
Shadow September 19, 2015 - 6:33 am

Every time I try to connect net using data card in kali 2.0 It shows error in starting connection.Is there any way to solve it as I dont know much of kali?

Reply
Sarad September 22, 2015 - 12:00 am

I’ve another issue. my CDMA Qualacom modem is not being detected. i did lsusb it is shown as mass storage device. then i tried to swtich it also i did modprobe bt still no success! it worked fine ubuntu which i was using before kali. help me guys if u know how to sort this out..

Reply
wind September 21, 2015 - 12:34 am

my genymotion doesnt work on new kali 2.0…..and it still needs alot of upgrades compared to previous versions cobalt strike doesnt work also ….

Reply
Nike Moe September 29, 2015 - 1:39 pm

how to Uninstall Adobe Flash player on Kali linux 2.0 Sana?
Thanks!

Reply
anonymityisgood January 10, 2016 - 12:42 am

If you have not figured out how to remove flash player try this. # apt-get remove adobe flash player. you may have to tweak a bit depending on what version of flash it is. let me know how it worked out.

Reply
metalgod September 30, 2015 - 8:18 am

i can’t run executable apps such as , eclips which was work fine in previous version of kali . any help

Reply
Marcos D October 13, 2015 - 6:53 am

hey guys, im a noob on this program, how can i get better help pls

Reply
Matrofranco October 29, 2015 - 10:30 am

Terminal won’t open whatsoever loading just stays there, not a RAM problem Intel Core i5-4210U CPU @ 1.70GHz × 4 5.8Gb RAM

Reply
panzerkrist December 27, 2015 - 12:21 pm

Same issue, can not for the life of me find a resolution. Any luck on this yet?

Reply
Aleric Johansen November 5, 2015 - 6:07 pm

What about us AMD/ATI GPU users? (Not to complain or anything, just wondering if that is being worked on or not). I haven’t followed the last guide (not completely, yet, as it gets stuck for me installing the fglrx-driver, which it reports as broken held packages) but Sana seems to have broken some things that it had, or did I mess it up somehow?

Reply
Md. Fazla Rabbi November 7, 2015 - 2:46 am

I install kali linux 2.0 but I didn’t connected to my broadband internet connection. Please give me a solution with graphical user interface videos.

Reply
0per November 10, 2015 - 5:57 am

OK… so prior to 2.0 I could boot into Kali, get a terminal, type “airmon-ng check kill”, “airmon-ng start wlan0 11”, then start wireshark (which I had, in the options, entered my wifi key correctly, and enabled decryption) and begin capturing on mon0.

Now airmon-ng is naming the supposed monitor mode “wlan0mon” or something. If I dont “check kill” first then it makes a “wlan0mon0mon” but it seems to at least be capturing but all trafic is shown as 802.11 protocol – no decrypt. If I do the “check kill” it doesn’t even see any traffic on wlan0mon.

What in kali 2.0 has changed? Is it Airmon-ng? Has this been addressed by them yet? I can’t find anything about it but I’ll keep looking. I’ve seen alot of posts about this issue and but the gods remain oddly silent.

Reply
0per November 10, 2015 - 5:58 am

-and

Reply
Hunter November 14, 2015 - 4:01 am

I installed openvpn when i try to connect to a server using config — cilent.ovpn it shows initialisation sequence completed but no internet connection please help

Reply
anonymoityisgood January 10, 2016 - 12:36 am

Have you figured out openvpn yet?

Reply
Buy VPN service November 25, 2015 - 5:12 pm

LimeVPN delivering premium VPN services with the guarantee of 7-days cash back options, without demanding for any explanation.

Reply
shakeel December 3, 2015 - 3:04 am

I HAVE A KALI 2 BUT ITS TERMINAL IS NOT OPENING AND TERMINAL APPLICATIONS ARE ALSO NOT OPENING I HAVE INSTALL ALMOST 4 TIMES BUT PROBLEM NOT SOLVED IT WORKS FINE WHEN I PLAY OT AS LIVE PLEASE HELP ME IN THIS PROBLEM

Reply
Clon3 January 28, 2016 - 2:43 pm

Any clue why whenever I do update or upgrade it crashes my whole computer. … not even just the vmware. … the whole pc. Windows 10 btw

Reply

Leave a Reply to Mex5150Cancel reply

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