Skip to content

Instantly share code, notes, and snippets.

@doorbash
Last active December 17, 2017 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doorbash/82b6c78f9437e7f2be6a to your computer and use it in GitHub Desktop.
Save doorbash/82b6c78f9437e7f2be6a to your computer and use it in GitHub Desktop.
cd /usr/sbin
nano add-apt-repository
#!/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=`head -n 1 /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --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
add-apt-repository ppa:colingille/freshlight
add-apt-repository ppa:cesar-crea-si/eviacam
Download and install:
https://packages.debian.org/wheezy/amd64/libwxbase2.8-0/download
https://packages.debian.org/wheezy/amd64/libwxgtk2.8-0/download
https://packages.debian.org/wheezy/amd64/libjpeg8/download
https://packages.debian.org/wheezy/amd64/libtiff4/download
apt-get install winusb
@GaZy73
Copy link

GaZy73 commented Feb 26, 2017

Milad Doorbash I tried to install winusb on kali linux, but it had many errors .... pls can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment