Config Your Machine

tux-161406_960_720

There are a few steps we should to do, after a fresh install of Kali Linux ver 1.x & 2.x:
In my opinion, the 1st thing that we have to do, is to open a none-root user.
Why it’s important to work under a none-root user? because if you gonna download files through Kali
it’s important to do this under a none-root user, because files over the network, could be infected or poisoned.
And trust me, you don’t want infected or poisoned files under a user with full privilege.
Infected or poisoned files under a user with a full privilege (root) can access anywhere!, without asking you.

Important point that you must know: Unlike Windows OS, Linux are very very careful about Case Sensitive.
It means, that you have to pay attention to the terminal, even when it comes to a simple commands, and not to passwords only.


[How to open a none-root user]
#1) Open Terminal and type:
root@kalivm:~# adduser tux
#2) choose password for tux user
#3) fill in the ditails about tux (not important)
#4) add tux to the sudoer file by the command:
root@kalivm:~# sudo adduser tux sudo
#5) Open a new terminal tab and type:
root@kalivm:~# visudo
#6) Locate # User privilege specification
#7) Go with the mouse mark under root user
#8) Hit I key, and add tux under root

 

*It should look like this*

root_privilege

#9) Hit Esc key
#10) type: :wq! [and enter]
*The :wq! means Write down the changes & Quit immediately*
#11) Reboot your Kali machine & Login with your new none-root user

The none-root user, will look like this at the terminal
assault@kalivm:~$


[Update your machine]
#1) Open terminal and type 1 by 1:
assault@kalivm:~$ sudo apt-get update
assault@kalivm:~$ sudo apt-get upgrade


[Touchpad is not detected – config/enable your touchpad]
#1) Open terminal, access root & type:
root@kalivm:~# vi /etc/modprobe.d
#2) Go to “blacklist-libnfc.conf & hit enter
#3) Add this lines below, under the existing lins

blacklist i2c_designware_platform
blacklist i2c_designware_core

#4) Save the modprobe file and exit
#5) Clean the terminal & type:
root@kalivm:~# rmmod i2c_designware_platform
root@kalivm:~# rmmod i2c_designware_core
root@kalivm:~# reboot


 

[Fix pulseaudio – Only on Kali 1.x]
#1) Open terminal, access root & type:
root@kalivm:~# gedit /etc/default/pulseaudio
#2) Change the PULSEAUDIO_SYSTEM_START

The exist line looks like thie:
PULSEAUDIO_SYSTEM_START=1
Change it to:
PULSEAUDIO_SYSTEM_START=0

#3) Save the file & close
root@kalivm:~# reboot

 

In addition to that, for sound management, i love to use alsa-utils.
You can install alsa-utils as well, by the command:
assault@kalivm:~$ sudo apt-get install alsa-utils
*Launch it by the command*
assault@kalivm:~$ sudo alsamixer


[Add missing repositories (universe repos) to APT file – only if you have to]
#1) Open terminal & type:
assault@kalivm:~$ sudo gedit /etc/atp/sources.list

#2) Add all the sources down below, to the sources file under the existing one

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 http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://repo.kali.org/kali kali-bleeding-edge mainnon-free

#3) Clear the terminal & type:
assault@kalivm:~$ sudo apt-get update

NOTICE: “apt-get dist-upgrade” is not necessary!, unless you want to upgrade your disro to new ver.


 

[Fix port_mapper warning]
#1) Open terminal, access root & type:
root@kalivm:~# update-rc.d rpcbind defaults
root@kalivm:~# update-rc.d rpcbind enable
root@kalivm:~# reboot
*Check if it works, by the command*
assault@kalivm:~$ sudo rpcinfo -p


[Enable “chkconfig”]
#1) Open terminal & type:
assault@kalivm:~$ sudo apt-get install chkconfig
assault@kalivm:~$ sudo reboot
*Check if chkconfig working by the command*
assault@kalivm:~$ sudo chkconfig

The”chkconfig” helps us to know if the service is ON or OFF


[Fix Device not managed error – on wired connection only!]
#1) Open terminal & type:
assault@kalivm:~$ sudo gedit /etc/NetworkManager/NetworkManager.conf
#3) Locate [ifupdown] topic
#4) Change the value to managed=true
#5) Save the file & exit
#6) Type in terminal:
assault@kalivm:~$ sudo service NetworkManager stop
assault@kalivm:~$ sudo service NetworkManager start


[Enable add-apt-repos – only if needed]
#1) Open terminal & type:
assault@kalivm:~$ sudo apt-get install python-software-properties
assault@kalivm:~$ sudo apt-get install software-properties-common

 

 

________________

ENJOY! 🙂