20 things to do after installing Kali Linux 1.x

by blackMOREOps
221 comments

Useful utilities and Software’s

6. Install Java

Go to the following link and download jdk7. At the time of writing this guide the jdk version was jdk-7u45-linux-x64. Note that I’m using x64 which is 64-bit. 32-bit users should choose their versions accordingly. Not that tough really!

Oracle Sun Java JDK in Kali Linux

Following is what I’ve used. JDK-7u45-Linux-x64 At the time of writing this guide the available version was jdk-7u45-linux-x64.tar.gz Download and save the file in /root directory.

tar -xzvf /root/jdk-7u45-linux-x64.tar.gz
mv jdk1.7.0_45 /opt
cd /opt/jdk1.7.0_45

This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:

update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_45/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_45/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_45/bin/java
update-alternatives --set javac /opt/jdk1.7.0_45/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so

Follow installing Java JDK in Kali Linux post for step by step instructions and testing options.

7. Install Flash

Just DON’T install Flash. Explanations coming soon.

This is fairly simple and easy and should work from most people out there: In the terminal:

apt-get install flashplugin-nonfree

and then type in:

update-flashplugin-nonfree --install

That’s it. You flash should be working as expected.

Adobe Flash in Kali Linux

Follow installing Flash in Kali Linux post for step by step instructions and testing options. This post also includes manual Flash installation procedures for those whose installation might fail with above mentioned process.

8. Install File Roller – Archive Manager

Kali Linux lacks a proper GUI archive manager. Install it Archive Manager (File Roller) using the following command:

apt-get install unrar unace rar unrar p7zip zip unzip p7zip-full p7zip-rar file-roller -y

You can now find Archive Manager in Applications > Accessories > Archive Manager.

9. Add a standard user

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.

10. Add add-apt-repository

Debian allows users to add and use PPA repositories by an application named add-apt-repository however, Kali Linux didn’t include this in their default package list. With Kali, because this is a special purpose application and certain modifications were made to make it work for what it does best (Penetration Test). To enable PPA Repository via add-apt-repository application, follow the steps below: First install Python Software properties package.

apt-get install python-software-properties

Next install apt-file

apt-get install apt-file

Update apt-file.

apt-file update

This takes a while, so in case your apt-file update is SLOW, you might want to try and fix that as well. (Note that I got repo.kali.org in my /etc/apt/sources.list file instead of http.kali.org.) Once apt-file update is complete, you should be able to search for it.

apt-file search add-apt-repository

Your output should look similar to this:

python-software-properties: /usr/bin/add-apt-repository
python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz

The default add-apt-repository application located in (/usr/bin/add-apt-repository) works for Debian. So if you’re using Kali, chances are it won’t work. There’s a nice fix for that which I will add at the bottom of this post, (try them on VirtualBox if you feel like). But I found we can just mimic Ubuntu Oneiric to make add-apt-repository work.

cd /usr/sbin
vi add-apt-repository

Add the following code and save the file.

#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
  ppa_name=`echo "$1" | cut -d":" -f2 -s`
  if [ -z "$ppa_name" ]
  then
    echo "PPA name not found"
    echo "Utility to add PPA repositories in your debian machine"
    echo "$0 ppa:user/ppa-name"
  else
    echo "$ppa_name"
    echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main " >> /etc/apt/sources.list
    apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
    key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
    rm -rf /tmp/${NAME}_apt_add_key.txt
  fi
else
  echo "Utility to add PPA repositories in your debian machine"
  echo "$0 ppa:user/ppa-name"
fi

Note: In this line echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list I’ve used Oneiric. You can try to use Lucid, Raring or Saucy as per your choice. Now chmod and chown the file.

chmod o+x /usr/sbin/add-apt-repository 
chown root:root /usr/sbin/add-apt-repository

Now that we added the correct code, we can use add-apt-repository to add a PPA repository. I tried the following to add themes and custom icons in Kali Linux.

/usr/sbin/add-apt-repository ppa:noobslab/themes
/usr/sbin/add-apt-repository ppa:alecive/antigone

Kali Linux add PPA repository add-apt-repository - adding PPA Repository using add-apt-repository - 7 - blackMORE Ops

I’ve removed all screenshots from this post, but if you want see read and understand how it all works, I suggest reading the details post on  adding PPA repository add-apt-repository in Kali Linux.

You may also like

221 comments

Doug November 5, 2015 - 11:17 pm

Hi BMO,
Many thanks for your reply. I know that Kali 1.x is done and dusted and wont be updated any longer, however I did find this on the Kali website which still allows certain updates to Kali1.x but it wont be maintained or updated any further.

https://www.kali.org/news/kali-moto-eol/

“Kali Moto Repository Purge

We’ve given Kali Moto (1.0) a good two months of grace time and will be purging the unsupported 1.0 distribution files from our repositories in the next few days. If you’re still using Kali 1.0 then it’s definitely time to either upgrade or update.
cat << EOF > /etc/apt/sources.list
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
EOF

apt-get update
apt-get dist-upgrade # get a coffee, or 10.
reboot

If for some reason you can’t upgrade, we’ve set aside an archive mirror of Kali 1.0, which can be set as follows:
cat << EOF > /etc/apt/sources.list
deb http://old.kali.org/kali moto main non-free contrib
EOF

Please note, this repository will not be maintained or updated.”

Hope this is of some use after a fresh install of Kali1.x

Cheers
Doug

Reply
OAK SyS January 3, 2016 - 7:54 pm

What is the fuck of > Kali Sana

Reply
matos22 March 12, 2016 - 9:27 am

Why is it so complicated now with kali sana :( ?

Reply
OAK SyS January 3, 2016 - 7:59 pm

Do you know how to hack / android phone without Wi Fi or backdoor.apk using Kali Linux ?

-> social engineering toolkit
-> what is target phone connected website & ip address

:)

Reply
litl11 February 5, 2016 - 4:53 am

so helpful. the noble work of a gifted teacher. thank you this.

Reply
hitesh March 3, 2016 - 3:43 am

when installing kali 2.0 , the network autoconfiguration fails .after installation , there is no option for wifi. admin please help

Reply
Neha Sharma March 5, 2016 - 8:10 pm Reply
Tejveer August 13, 2016 - 11:02 pm

My kali linux 2.0 freezes. Nothing works after a few minutes of boot. Please give some useful advice…

Reply
RipstiE September 4, 2016 - 2:41 am

When i wanted to add repository it showed me syntax error on the second line of code pointing to $ symbol. Is it okay if i add the code, not replace it? Sorry for english though.

Reply
Ajay Ambure September 14, 2016 - 4:54 pm

Hey I have a problem on Kali device. Only one Wi-Fi network whenever I try to connect. I’m unable to search for another. Whenever I search only one Wi-Fi network shows up. Please help me guys.

Reply
Abhinav November 12, 2016 - 6:54 pm

I used this video to update: https://www.youtube.com/watch?v=3w8CaQkjCvE

Reply
Armando Motta December 3, 2016 - 1:52 pm

At the end of the document in the link below, it reads:

John Sheeks
Cyber Engineer
US Army Cyber Protection Brigade

http://www.academia.edu/8048908/20_things_to_do_after_installing_Kali_Linux

Can you believe this guy copy-pasted your article and uploaded it as if he had written it? How ridiculous is that? US Army Cyber Protection Brigade… so ridiculous, it pisses me off. You should contact Academia.edu at:

Copyright Agent
c/o Academia.edu
251 Kearny Street, #520
San Francisco, CA 94108
email: [email protected]
phone: +1 (650) 271-9312
fax: +1 (415) 520-6926

Reply
Sado December 12, 2016 - 7:21 pm

So you didn’t know? This website is run by a cyber engineer who works for the US Army.

Reply
arjun thagunna January 31, 2017 - 5:31 pm

apt-get install alsa-utils -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: Unable to locate package alsa-utils

Reply
Renaldo February 6, 2017 - 11:47 pm

I used to be recommended this website by means of my cousin. I am no longer certain whether this publish is written by way of him as nobody else
realize such targeted approximately my problem.
You’re amazing! Thanks!

Reply
konzem February 14, 2017 - 2:37 am

root@kali:~# apt-get install gdebi
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package gdebi 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 ‘gdebi’ has no installation candidate

Reply
Xitiz Basnet March 17, 2017 - 1:51 am

Respected Friends,
I have install kali linux on my laptop.After installing the kali i update and upgarde it but my laptop dont play the sound i mean when i install th sound it says alpa-base not install what to do no idea?

Reply
Rahi March 17, 2017 - 8:49 am

Can I use my GPU NIVIDA graphics in virtualbox kali also ?

Reply
of-poison-and-justice.tumblr.com May 21, 2017 - 11:40 am

Undeniably consider that which you said. Your
favourite reason seemed tto be on the web the simplest factor too take into account of.
I say to you, I definitelky get annmoyed whilst other people
consider concerns that they just don’t recognize about.

You managed to hhit the nail upon the toop and outlined out thhe whole thing with no need side-effects , people couldd take a signal.
Will probably bbe back to get more. Thank you

Reply
Jefferey Mac July 19, 2017 - 1:10 am

can you please help sqlmap is not working on my kali linux 2016.1

Reply
Best Engineering College in Dehradun April 21, 2021 - 4:03 pm

Nice Blog. Very interesting information. Thanks for sharing with us.

Reply
John Kim June 1, 2022 - 4:27 pm

Thank you so much boss.

Reply
1 5 6 7

Leave your solution or comment to help others. Comment don't need registration or real email, so feel free.

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

About Us

blackMORE Ops - touch-icon-72x72

blackMORE Ops” does not promote, encourages and excite hackers, its purpose is to make people aware that what is going around. Know Hacking but No Hacking!

Feature Posts

Newsletter