Hi , i am wondering if anyone have an ideia on how to create in one of your lan servers a repository for kali .
I want to this for kali 1.1.0 only for now http://old.kali.org/kali/dists/moto/ .
The reason is that i have a gut that this repository will not be here for much time longer , and as security i want to have it on 1 of my servers in case i need some package from it in the future .
I was looking at some websites :
http://lgallardo.com/en/2012/12/06/c...con-debmirror/
but by default , people instead simplifying things they just complicate more .
Anyone of the admins here could give an idea in how to change this script for host the repository in this directory :/media/disk4/kali
and how do i install kali-archive-keyring_2015.2_all.deb properly according to this script :#!/bin/sh
# Don't touch the user's keyring, have our own instead
export GNUPGHOME=/home/repo/keyrings/debian
# Architecture (i386, powerpc, amd64, etc.)
arch=i386,amd64
# Section (main,contrib,non-free)
section=main,contrib,non-free
# Release of the system (squeeze,lenny,stable,testing,etc)
release=squeeze
# Server name, minus the protocol and the path at the end
server=ftp.us.debian.org
# Path from the main server, so http://my.web.server/$dir, Server dependant
inPath=/debian
# Protocol to use for transfer (http, ftp, hftp, rsync)
proto=http
# Directory to store the mirror in
outPath=/home/repo/mirrors/debian
# Start script
debmirror -a $arch \
--no-source \
--md5sums \
--progress \
--passive \
--verbose \
-s $section \
-h $server \
-d $release \
-r $inPath \
-e $proto \
$outPath
thanks .
# dpkg-deb -x ubuntu-keyring_2012.05.19_all.deb ~
# gpg --no-default-keyring --keyring /home/repo/keyrings/ubuntu/trustedkeys.gpg --import /root/usr/share/keyrings/ubuntu-archive-keyring.gpg
gpg: keyring `/home/repo/keyrings/ubuntu/trustedkeys.gpg' created
gpg: key 437D05B5: public key "Ubuntu Archive Automatic Signing Key " imported
gpg: key FBB75451: public key "Ubuntu CD Image Automatic Signing Key " imported
gpg: key C0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) " imported
gpg: key EFE21092: public key "Ubuntu CD Image Automatic Signing Key (2012) " imported
gpg: Total number processed: 4
gpg: imported: 4 (RSA: 2)
gpg: no ultimately trusted keys found