rsync -zavP raspbian-stretch nash@naveed2.user.nz.vpn:/home/nash/webrepos/
yum install httpd -y
chmod -R 755 /var/www
gpg --gen-key
gpg -k
gpg --edit-key CE123456
showpref
setpref AES256 AES192 AES CAST5 3DES IDEA SHA256 SHA384 SHA512 SHA224 ZLIB BZIP2 ZIP Uncompressed
gpg --export -a CE123456 > /home/repo.key
gpg --no-default-keyring --keyring /var/www/apt/myrepo.gpg --import /home/repo.key
cp /home/repo.key /var/www/html/
mkdir -p /var/www/html/apt-repo/
touch /var/www/html/apt-repo/indexer.sh
cat > /var/www/html/apt-repo/indexer.sh << EOFSH
#!/bin/bash
dpkg-scanpackages -m . > Packages
cat Packages | gzip -9c > Packages.gz
PKGS=$(wc -c Packages)
PKGS_GZ=$(wc -c Packages.gz)
cat > Release << EOF
Architectures: all
Date: $(date -Ru)
MD5Sum:
$(md5sum Packages | cut -d" " -f1) $PKGS
$(md5sum Packages.gz | cut -d" " -f1) $PKGS_GZ
SHA256:
$(sha256sum Packages | cut -d" " -f1) $PKGS
$(sha256sum Packages.gz | cut -d" " -f1) $PKGS_GZ
EOF
sleep 3
gpg --yes --digest-algo SHA256 --armor --output Release.gpg --detach-sign Release
gpg --yes --digest-algo SHA256 --clearsign --output InRelease Release
EOFSH
chmod 755 /var/www/html/apt-repo/indexer.sh
cp /tmp/deb/stable/*.deb /var/www/html/apt-repo/
./var/www/html/apt-repo/indexer.sh
apt-key adv --keyserver http://192.168.201.121/repo.key --recv-keys CE123456
Or:
wget -qO - http://192.168.201.121/myrepo.gpg | sudo apt-key add -
Or
cd /etc/apt/trusted.gpg.d/
wget http://192.168.201.121/myrepo.gpg
apt install software-properties-common
add-apt-repository "deb http://192.168.201.121/raspbian stretch-stable main"
Or:
echo "deb http://192.168.201.121/apt-repo/ / " > /etc/apt/sources.list.d/new-repo.list
apt-get update
yum install httpd -y
chmod -R 755 /var/www
gpg --gen-key
gpg -k
gpg --edit-key CE123456
showpref
setpref AES256 AES192 AES CAST5 3DES IDEA SHA256 SHA384 SHA512 SHA224 ZLIB BZIP2 ZIP Uncompressed
gpg --export -a CE123456 > /home/repo.key
gpg --no-default-keyring --keyring /var/www/apt/myrepo.gpg --import /home/repo.key
cp /home/repo.key /var/www/html/
mkdir -p /var/www/html/apt-repo/
touch /var/www/html/apt-repo/indexer.sh
cat > /var/www/html/apt-repo/indexer.sh << EOFSH
#!/bin/bash
dpkg-scanpackages -m . > Packages
cat Packages | gzip -9c > Packages.gz
PKGS=$(wc -c Packages)
PKGS_GZ=$(wc -c Packages.gz)
cat > Release << EOF
Architectures: all
Date: $(date -Ru)
MD5Sum:
$(md5sum Packages | cut -d" " -f1) $PKGS
$(md5sum Packages.gz | cut -d" " -f1) $PKGS_GZ
SHA256:
$(sha256sum Packages | cut -d" " -f1) $PKGS
$(sha256sum Packages.gz | cut -d" " -f1) $PKGS_GZ
EOF
sleep 3
gpg --yes --digest-algo SHA256 --armor --output Release.gpg --detach-sign Release
gpg --yes --digest-algo SHA256 --clearsign --output InRelease Release
EOFSH
chmod 755 /var/www/html/apt-repo/indexer.sh
cp /tmp/deb/stable/*.deb /var/www/html/apt-repo/
./var/www/html/apt-repo/indexer.sh
apt-key adv --keyserver http://192.168.201.121/repo.key --recv-keys CE123456
Or:
wget -qO - http://192.168.201.121/myrepo.gpg | sudo apt-key add -
Or
cd /etc/apt/trusted.gpg.d/
wget http://192.168.201.121/myrepo.gpg
apt install software-properties-common
add-apt-repository "deb http://192.168.201.121/raspbian stretch-stable main"
Or:
echo "deb http://192.168.201.121/apt-repo/ / " > /etc/apt/sources.list.d/new-repo.list
apt-get update
No comments:
Post a Comment