Archive for diciembre, 2016

Creando tu propio repositorio con reprepro

# Instalamos lo necesario
apt-get install reprepro devscripts apache2 -y

# Generar las llaves requiere entropia. Lo soluciono así.

apt-get install rng-tools -y
vi /etc/default/rng-tools
HRNGDEVICE=/dev/urandom
/etc/init.d/rng-tools restart

# Generamos la clave
gpg –gen-key

De la llave publica tomamos el dato para luego la configuracion.

# quitamos lo que no necesitamos

apt-get remove –purge rng-tools -y

mkdir -p /var/www/html/repos/apt/debian

vi /etc/apache2/sites-available/repos.conf

# vi /etc/apache2/sites-available/repos.conf

# We want the user to be able to browse the directory manually
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all

# This syntax supports several repositories, e.g. one for Debian, one for Ubuntu.
# Replace * with debian, if you intend to support one distribution only.

Order deny,allow
Deny from all

Order deny,allow
Deny from all

Order allow,deny
Deny from all

cd /var/www/html/
rm index.html

mkdir -p /var/www/html/repos/apt/debian/conf

cd /etc/apache2/sites-available/

a2dissite 000-default.conf

a2ensite repos.conf

service apache2 reload

mkdir -p /var/www/html/repos/apt/debian/conf

vi /var/www/html/repos/apt/debian/conf/distributions

Origin: titulo-del-repo
Label: titulo-del-repo
Suite: stable
Codename: nombre-fantasia
Architectures: amd64
Components: main
Description: Descripcion
SignWith: Llave

vi /var/www/html/repos/apt/debian/conf/options

verbose
basedir /var/www/html/repos/apt/debian
ask-passphrase

cd /var/www/html/repos/apt/debian

reprepro -VVV export

reprepro -VVV createsymlinks

# Agregando paquetes
cd /var/www/html/repos/apt/debian
reprepro includedeb filloy /home/huayra/hello_2.10-1_amd64.deb

# Exportando la llave
cd /var/www/html/repos/apt/debian/

gpg –armor –output llave.gpg.key –export llave

diciembre 24, 2016 at 11:50 am Deja un comentario


bueno

diciembre 2016
L M X J V S D
 1234
567891011
12131415161718
19202122232425
262728293031  

Archivos