Fix dependencies; fix xterm issue
This commit is contained in:
parent
fe758286cd
commit
5896895397
|
@ -132,6 +132,11 @@ conditional_clear
|
|||
mostrarheader
|
||||
|
||||
echo "Updating system..."
|
||||
|
||||
#cleaning up
|
||||
sudo apt-get autoremove -y
|
||||
sudo apt-get autoclean -y
|
||||
sudo apt-get clean -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install xterm --yes
|
||||
clear
|
||||
|
@ -193,7 +198,7 @@ echo -ne "Curl............"
|
|||
echo -ne "Dhcpd..........."
|
||||
if ! hash dhcpd 2>/dev/null; then
|
||||
echo -e "\e[1;31mInstalling ..."$transparent""
|
||||
xterm $HOLD -title "Installing Dhcpd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000"-e apt-get --yes install isc-dhcp-server
|
||||
xterm $HOLD -title "Installing Hostapd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install isc-dhcp-server
|
||||
else
|
||||
echo -e "\e[1;32mOK!"$transparent
|
||||
fi
|
||||
|
|
2
add.py
2
add.py
|
@ -5,4 +5,6 @@ import sys, traceback
|
|||
|
||||
cmd1 = os.system("apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6")
|
||||
cmd2 = os.system("echo '# Kali linux repositories | Added by Katoolin\ndeb http://http.kali.org/kali kali-rolling main contrib non-free\ndeb http://repo.kali.org/kali kali-bleeding-edge main' >> /etc/apt/sources.list")
|
||||
cmd3 = os.system("echo 'deb http://ftp.de.debian.org/debian/ jessie main contrib' >> /etc/apt/sources.list ")
|
||||
cmd4 = os.system("curl https://debgen.simplylinux.ch/txt/jessie/gpg_e00a2b3f751ae92de06f69c527d8fde28f56d923.txt | sudo tee /etc/apt/gpg_keys.txt")
|
||||
cmd3 = os.system("apt-get update -m")
|
||||
|
|
|
@ -7,6 +7,7 @@ infile = "/etc/apt/sources.list"
|
|||
outfile = "/etc/apt/sources.list"
|
||||
|
||||
delete_list = ["# Kali linux repositories | Added by Katoolin\n", "deb http://http.kali.org/kali kali-rolling main contrib non-free\n","deb http://repo.kali.org/kali kali-bleeding-edge main\n"]
|
||||
delete_list = ["deb http://ftp.de.debian.org/debian/ jessie main contrib"]
|
||||
fin = open(infile)
|
||||
os.remove("/etc/apt/sources.list")
|
||||
fout = open(outfile, "w+")
|
||||
|
@ -17,4 +18,4 @@ for line in fin:
|
|||
fin.close()
|
||||
fout.close()
|
||||
|
||||
print "\033[1;31mDONE! !\033[1;m"
|
||||
print "\033[1;31mDONE! \033[1;m"
|
||||
|
|
Loading…
Reference in New Issue