Sunday, November 10, 2013

HOWTO : Enhance Kali Linux 1.0.5

This article is also suit for Kali Linux 1.0.9a

# hexchat (IRC Client)
Go to HexChat Download and download the latest version. Please note that it is for 64-bit.

For example, the latest version is hexchat_2.9.6.1-0_amd64.deb :

apt-get install libsexy2

wget http://dl.hexchat.net/hexchat/debian/hexchat_2.9.6.1-0_amd64.deb
dpkg -i hexchat_2.9.6.1-0_amd64.deb

# galculator
apt-get install galculator

# freemind (mindmap)
apt-get install freemind

# libreoffice
apt-get install libreoffice

# gedit
apt-get install gedit

# recordmydesktop
apt-get install gtk-recordmydesktop

# radiotray
apt-get install radiotray

# file-roller

apt-get install file-roller

# virtualbox
echo "deb http://download.virtualbox.org/virtualbox/debian wheezy contrib" > /etc/apt/sources.list.d/vbox.list

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

apt-get update
apt-get install virtualbox-4.3


# flash
apt-get install flashplugin-nonfree

# alsa mixer to unmut the Kali Linux
apt-get install alsa alsa-tools
amixer sset Master unmute


nano /etc/default/pulseaudio

Change from :

PULSEAUDIO_SYSTEM_START=0

Change to :

PULSEAUDIO_SYSTEM_START=1


# Bluetooth Audio Device

/etc/init.d/bluetooth start

apt-get install pulseaudio-module-bluetooth pulseaudio-module-gconf bluez-audio


Then reboot the box. After boot up, configure the bluetooth device via the Bluetooth Icon on the top right corner. Make sure you start the bluetooth service beforehand.

# Web Browser Media Plugin

apt-get install totem-mozilla

If you already applied Apparmor, please add the following lines into the /etc/apparmor.d/usr.lib.iceweasel.iceweasel

/usr/share/totem/fullscreen.ui r,
/usr/share/totem/mozilla-viewer.css r,
/usr/share/totem/mozilla-viewer.ui r,


Now, you can play media in the web browser, such as Quicktime.

That's all! See you.

HOWTO : CUDA on Kali Linux 1.0.5

Step 1 :

Download the CUDA driver from nVidia Official Site.

# 64-bit
wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run

# 32-bit
wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_32.run

Step 2 :

Install the CUDA driver. Accept the default values and select to install nVidia display driver also.

# 64-bit
chmod +x cuda_5.5.22_linux_64.run
./cuda_5.5.22_linux_64.run


# 32-bit
chmod +x cuda_5.5.22_linux_32.run
./cuda_5.5.22_linux_32.run


Step 3 :

Create a .bash_profile.

nano /root/.bash_profile

# 64-bit
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH


# 32-bit
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib:$LD_LIBRARY_PATH


Step 4 :

Update the boot loader to disable the open source nvidia display driver.

sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
reboot


Step 5 (Optional) :

To test the CUDA with multiforcer.

# multiforcer for nvidia (example)
cd /usr/share/multiforcer/
multiforcer -h NTLM -c charsets/charsetall -f test_hashes/Hashes-NTLM-Full.txt --noopencl


Step 6 (Optional) :

John the Ripper for CUDA.

# 64-bit
wget http://www.openwall.com/john/g/john-1.7.9-jumbo-7.tar.gz
tar -xvzf john-1.7.9-jumbo-7.tar.gz
cd john-1.7.9-jumbo-7/src
make
make clean linux-x86-64-gpu

cd ../run
./john --help


That's all! See you.