quinta-feira, 2 de julho de 2015

HOW TO ENABLE UBUNTU PPA ON KALI LINUX

So, basically the kali linux is debian source, however i try using this procedure to using the ppa based from ubuntu and work realy fine.

so, let's go to show the procedures:

First:

apt-get install python-software-properties
apt-get install apt-file
apt-file update
apt-file search add-apt-repository

Your output should this message:
python-software-properties: /usr/bin/add-apt-repository
python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz

take a look if you have this file: add-apt-repositor, by this way:

vi /usr/sbin/add-apt-repository

if you have, clone this file cp add-apt-repository add-apt-repository-old

vi add-apt-repository
and put this informantion just:

#!/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


root@unknow:/usr/bin# chmod 777 add-apt-repository
root@unknow:/usr/bin# ./add-apt-repository ppa:noobslab/themes
noobslab/themes
Executing: /tmp/tmp.INWRRi7VR5/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
D530E028F59EAE4D
gpg: key D530E028F59EAE4D: public key "Launchpad PPA for NoobsLab" imported
gpg: Total number processed: 1
gpg:               imported: 1


Note, the line echo, i try to use the files by oneric main distribution, but you can try licud, raging or saucy.

After; start to add some ppa source using this command:

./add-apt-repository ppa:noobslab/themes

Do the update and finish!

source: http://www.blackmoreops.com/2014/02/21/kali-linux-add-ppa-repository-add-apt-repository/

Nenhum comentário:

Postar um comentário