20 things to do after installing Kali Linux 1.x
I’ve compiled a small list of things that I always perform after installing a fresh copy of Kali Linux in this post. Because I got multiple laptops and workstations, I’ve tried to generalize the following instructions to suit everyone’s(including mine??) requirements. This is my top list of 20 things to do after installing Kali Linux. Your requirement’s might be completely different. If you have a suggestion, let me know via comments section. You can comment without registering.. so that’s an easy way to give me feedback and opinion.
WARNING: Following guide was written and tested for Kali Linux 1.x. I am working best to write a guide on Kali Linux 2.0 – Kali Sana. Use this guide at your own risk for Kali Linux 2.0 – Kali Sana.
Table of Contents
Standard Packages:
Standard packages contains anything and everything I found useful. This list if divided into 3 parts:
- Kali Specific
Kali Linux is a special build from Debian. Kali Linux inherits a lot of the issues from Debian Linux. This section shows you how to resolve of those. They are not specific to Kali Linux only and you might be leave them as it is, but I found that if I see an error my OCD kicks in and I have to make it go away…
- Useful utilities and Software’s
A collection of utilities and software’s I found useful. These are day to day software’s that are available in most other Linux distributions or at least I think they should be made available as part of a default installation.
- Enhancements and accessibility
Kali Linux is made to boot up fast and low of resources. But if you have some more CPU and GPU power to spare, you might want to try to make it look more colorful.
Kali Specific:
1. Fix Device not managed error – wired network
If you want NetworkManager to handle interfaces that are enabled in /etc/network/interfaces
: Set managed=true
in /etc/NetworkManager/NetworkManager.conf
. So this file looks like:
[main] plugins=ifupdown,keyfile [ifupdown] managed=true
Read the full article on fixing Wired Network interface “Device not managed” error in Debian or Kali Linux.
2. Fix default repository
The simplest way is to edit the /etc/apt/sources.list remove or comment every-line with # at the front and add the following lines..
leafpad /etc/apt/sources.list
Comment or remove existing config with the following lines:
Kali Linux 2.0 – Kali Sana users – Use the following Repo list:
# Regular repositories deb http://http.kali.org/kali sana main non-free contrib deb http://security.kali.org/kali-security sana/updates main contrib non-free # Source repositories deb-src http://http.kali.org/kali sana main non-free contrib deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
Kali Linux 1.x users – you can keep using the repo below:
## Regular repositories deb http://http.kali.org/kali kali main non-free contrib deb http://security.kali.org/kali-security kali/updates main contrib non-free ## Source repositories deb-src http://http.kali.org/kali kali main non-free contrib deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
Save and close the file.
Kali Linux 1.x details and explanations can be found in adding official Kali Linux 1.x Repositories page.
Kali Linux 2.x – Kali Sana details and explanations can be found in adding official Kali Linux 2.0 – Kali Sana Repositories page.
3. Update, Upgrade, Dist-Upgrade
Clean, update, upgrade and dist-upgrade your Kali installation.
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
4. Fix PulseAudio warning
My Kali throws me this warning:
[warn] PulseAudio configured for per-user sessions ... (warning).
Debian variants also throws similar warning during boot.To fix this do the following:
leafpad /etc/default/pulseaudio
Find this line:
PULSEAUDIO_SYSTEM_START=0
Replace 0 with 1
PULSEAUDIO_SYSTEM_START=1
Where, 0 = don’t start in system mode, 1 = start in system mode
reboot
I am having second thoughts about this step, refer to the whole article below to know WHY! If you have a suggestion about it, leave that on that article so that I can sort through them and pick the best one.
Details and explanations can be found in Fixing PulseAudio configured for per-user sessions … (warning) in Kali Linux page.
5. Enable sound on Boot
Follow the steps below to fix sound mute in Kali Linux on boot
apt-get install alsa-utils -y
In GNOME Desktop (The default Kali Desktop)
- Right Click on the small volume ICON and select Sound Preferences
- Alternatively, you can also go to Applications > System Tools > Preferences > System Settings > Sound to bring up the same options.
- Use the Output volume slider to ON, shown similar the screenshot above. That’s it you’re done. Close Sound window.
Details and explanations can be found in fixing sound mute in Kali Linux on boot page.
221 comments
Kali comes with a ton of issues out of the box and there are just a many different (wrong) solutions floating around the web for each problem. After picking my way through most of my problems and almost having kali purring like a cat I fubared my install following a bunk suggestion.
I reinstalled and set out to try it again and I ran into this miracle of a site. ALL the (CORRECT!!) solutions for all the problems ALL ON ONE PAGE!!!
You are my hero. You have reduced hours of googling, cursing and hair pulling to mere minutes of joy. The kali help forums should all be replaced with a link to your site. Hell yea
Hi Frylock,
Thank you for your kind words.
Kali forum is great as users in there can discuss more advanced stuffs (some are doing great work with scripting and actual development, i.e. PwnSTar ). I write more from an end user point of view with additional explanation that I see fit. But I am not comparable to many advanced users
But till then, yeah, I will do my best to keep my posts updated with CORRECT info.
-BMO
Dude you are awesome, thanks for sharing.
E: Unable to locate package ” package name”
when i install some package
for eg:
apt-get install tor
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package tor is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘tor’ has no installation candidate
apt-cache search bittorrent
root@kali:~# apt-get install transmission-gtk
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package transmission-gtk
Fix your repositories.
Thanks!!
ORACLE JAVA FROM PPA
su –
echo “deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” | tee /etc/apt/sources.list.d/webupd8team-java.list
echo “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer
exit
Remember to go into sources.list.d and remove the “” from “deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” & “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” or they won’t be read; otherwise, it works like a charm.
hey brother i want to delete Chrip and Arduino IDE, what should i do.
Any guidance please
Man I started of using kali linux 5 days ago and i loved it so much i installed ubuntu and ubuntu server 14.04.. Those five days feel like a lifetime ago because ive learnt so much. You especially started me off in the right direction with this post of yours and i just want to say that you will never know how grateful i am lol. The linux community is amazing and helpful and you can answers if you use your brain and search properly. Thanks you so much. (btw i think synaptic was really helpful for me when i started out, even though i broke my system with it :p.. just thought it was worth mentioning!)
Really appreciate the effort you’ve made, hit a few problems but this time round my installation is boss, I’m fairly new so fixing the problems myself is out of the question, I’ve yet to absorb most of the theories behind what’s actually being done, but common sense goes a long way o making things work for yourself!
Thanks for the help!
Great post!
Really! Thank you
nice post ..thnx for the post
Per-User sound sessions is actually usefull to me. I like to run an icecast server for streaming media live (DJ Sessions). With “PulseAudio configured for per-user sessions” I can mix while on a user account, and switch user to watch a movie when I cheat and put mixxx in autodj mode. ;)
Maybe you wouldn’t want to do that (blackMORE Ops and Al Addin):
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/
Off course, after dist-upgrading or upgrading, you probably checked on it already, but…well, as I found this guide useful, I wanted to contribute someway…
first i just say wowwww what a post for beginners….i really appreciate it, good work dude.
HP Pavilion 15-e026AX Laptop (AMD APU Quad Core A10-4600M- 8GB RAM- 1TB HDD- 15.6 Inches- DOS- 1GB AMD Radeon HD 7660G and AMD Mobility Radeon HD 8670M Graphics)
i was tried your step for Install AMD ATI proprietary driver (fglrx) in Kali Linux. but i lost gru and only commond line
so plzzz help me to install Graphic card drive in Kali 1.0.7
and as well as sound,blue tooth etc..
you should probably update your info on installing remmina b/c is has issues with RDP plugin registering and loading.
i searched for a long time until i found the answer here:
https://forums.kali.org/showthread.php?19548-remmina-can-t-RDP-failes-to-load-rdp-plugin
user “mhu” posted the following solution that has worked for me every time.
i’ve edited it for simplicity and to update the package name to the latest version
Browse to http://packages.debian.org/wheezy/libfreerdp1
and download your suitable package i386 for 32bit and amd64 for 64bit.
navigate to where you saved the file usually /root/Downloads/
type: dpkg -i libfreerdp1_1.0.1-1.1+deb7u3_amd64.deb
And thats it.
it will fix remmina rdp protocol.
Hi BlackMoreOps,
i realy need help every time i want to upgrade somting i get this error:
root@Laurens:~# apt-get install alsa-utils -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: The package firefox-mozilla-build needs to be reinstalled, but I can’t find an archive for it.
So i wanted to install firefox somtime and i needed to install the firefox-mozilla-build and that din’t work annyway i already have installed firefox with an other way.
Now every time i want to upgrade somting or download i get this error and i don’t know what to do about it.
PLLLZZZ help me.
I actually posted the solution for pedropt in here : Install FireFox on Kali Linux
Here it is again anyway
————————————–
Hi pedropt,
Copy this comment in a Leafpad and try the commands as shown:
Try removing Firefox
CMD:
apt-get remove firefox-mozilla-build
If remove fails try re-installing
CMD:
apt-get install --reinstall firefox-mozilla-build
Good luck.-BMO
--------------------------------------
This should work for you too.
How can i install appropriate driver for my wireless adaptor ???
Hi anuj,
Any specific Wifi related drivers can be found in WikiDevi website. I haven’t seen any website better than that. Good Luck.
-BMO
Hi mate, wonder if you could help me. What I’m trying to do is to install python mechanize and then run the facebook.py file. Below is the code from the terminal. Any help would be greatly appreciated. Cheers
(by the way, I don’t know if it changes anything or not, but the file has been saved under Desktop)
root@kali:~# apt-get install python-mechanize
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-mechanize is already the newest version.
python-mechanize set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@kali:~# python facebook.py
python: can’t open file ‘facebook.py’: [Errno 2] No such file or directory
root@kali:~# sudo apt-get install python-mechanize
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-mechanize is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@kali:~# python facebook.py
python: can’t open file ‘facebook.py’: [Errno 2] No such file or directory
root@kali:~# python facebook.py
hey Karate_Guy try watching this and see if it helps it’s from the guy who created it https://www.youtube.com/watch?v=sua6cjuFkug
the video is noy worcking
First, thank you for all of this–super helpful. But I’m having one problem…
When adding apt-add-repository, after creating the script (which I copied/pasted, so no typos), I tested it with the same repository you used as an example and I’m getting this:
root@smAsh:~# /usr/sbin/add-apt-repository ppa:noobslab/themes
/usr/sbin/add-apt-repository: line 23: syntax error near unexpected token `fi’
/usr/sbin/add-apt-repository: line 23: `fi’
Thank you so much for posting this article. I really struggled with those repositories back then, but after I found this website, all the problems that I had had been solved. Thank you so much, and I look forward to your future articles:)
for part 10 there’s no add-apt-repository in /usr/sbin ???
also the file is in /usr/bin ???
i’m lost ….
my installation
Description: Debian GNU/Linux Kali Linux 1.0.7
Release: Kali Linux 1.0.7
how can i only dist-upgrade not others
here is my sourse list [given below]… which repositories i have to close
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20140108-17:05]/ kali contrib main non-free
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20140108-17:05]/ kali contrib main non-free
## Security updates
deb http://security.kali.org/kali-security/ kali/updates main contrib non-free
## debian 7 main (this is just a comment)
# deb http://http.kali.org/kali/ kali main contrib non-free
# deb-src http://http.kali.org/kali/ kali main contrib non-free
## NEW
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb http://http.kali.org/kali kali main/debian-installer
deb http://repo.kali.org/kali kali-bleeding-edge main