Added PUBLISH instructions

This commit is contained in:
adrian15 committed 2020-01-18 22:47:44 +01:00
1 parent 31763279ca
commit bd218128df
6 files changed
+628

No files matched your search

+144
View File
@@ -0,0 +1,144 @@
-*- Text -*-
This is Rescapp. Welcome.
This file contains instructions for publishing new Rescapp Debian packages.
It's aimed at Rescapp developers whom have been given publishing permissions.
Verification
==============
Before publishing a new Rescapp package a minimal set of verifications should be done.
This might be documented in the future.
VERSION file update
=====================
master branch needs to have its VERSION updated to a new distinct version.
E.g. 0.54b5
Its associated commit message needs to be: "Bumped version into 0.54b5".
Example:
```
git checkout master
echo "0.54b5" > VERSION
git add VERSION
git commit -m "Bumped version into 0.54b5"
```
Debian branch on pair to normal branch
========================================
Assuming that the debian branch is debian-dev and the upstream branch is master then you both of them in pair.
That means that debian-dev has to have all of the master commits (but not otherwise).
```
git checkout debian-dev
git merge master
```
Debian changelog properly updated
===================================
Once in debian-dev a new commit editing debian/changelog file needs to add the new version according to the current one.
E.g.
```
rescapp (0.54b5-1) unstable; urgency=low
* Handle non found devices properly on the rest of options
-- Adrian Gibanel Lopez <adrian15sgd@gmail.com> Sat, 18 Jan 2020 21:01:00 +0000
```
Its associated commit message needs to be: "Bumped version into 0.54b5 (debian)".
Create and push new tags
=========================
Now we are ready to create and push the new tags to github
```
git checkout master
git tag -a "v0.54b5" -m "v0.54b5"
git push github-origin v0.54b5
git checkout debian-dev
git tag -a "v0.54b5-debian" -m "v0.54b5-debian"
git push github-origin v0.54b5-debian
git checkout master
```
Git based Debian package build (i386)
========================================
Please enter an empty folder (In Buster i386 chroot) and follow this procedure:
git clone https://github.com/rescatux/rescapp.git -b v0.54b5 rescapp-0.54b5
# Ignore detached HEAD warning
rm -rf rescapp-0.54b5/.git/
tar czf rescapp_0.54b5.orig.tar.gz rescapp-0.54b5/
rm -rf rescapp-0.54b5/
git clone https://github.com/rescatux/rescapp.git -b v0.54b5-debian rescapp-0.54b5
# Ignore detached HEAD warning
rm -rf rescapp-0.54b5/.git/
cd rescapp-0.54b5
dpkg-buildpackage -us -uc
cd ..
rm -rf rescapp-0.54b5/
Once the procedure has completed without errors you will find the following
files:
rescapp_0.54b5-1.debian.tar.xz
rescapp_0.54b5-1.dsc
rescapp_0.54b5-1_i386.changes
rescapp_0.54b5-1_i386.deb
rescapp_0.54b5.orig.tar.gz
Git based Debian package build (amd64)
========================================
Please enter an empty folder (In Buster amd64 chroot) and follow this procedure:
git clone https://github.com/rescatux/rescapp.git -b v0.54b5 rescapp-0.54b5
# Ignore detached HEAD warning
rm -rf rescapp-0.54b5/.git/
tar czf rescapp_0.54b5.orig.tar.gz rescapp-0.54b5/
rm -rf rescapp-0.54b5/
git clone https://github.com/rescatux/rescapp.git -b v0.54b5-debian rescapp-0.54b5
# Ignore detached HEAD warning
rm -rf rescapp-0.54b5/.git/
cd rescapp-0.54b5
dpkg-buildpackage -us -uc
cd ..
rm -rf rescapp-0.54b5/
Once the procedure has completed without errors you will find the following
files:
rescapp_0.54b5-1.debian.tar.xz
rescapp_0.54b5-1.dsc
rescapp_0.54b5-1_amd64.changes
rescapp_0.54b5-1_amd64.deb
rescapp_0.54b5.orig.tar.gz
Copy into local repo
=====================
* Copy rescapp_0.54b5-1.debian.tar.xz, rescapp_0.54b5-1.dsc, rescapp_0.54b5-1_i386.changes, rescapp_0.54b5-1_i386.deb, rescapp_0.54b5.orig.tar.gz built above into the Rescatux repo buster-dev/rescapp subfolder.
* Copy rescapp_0.54b5-1.debian.tar.xz, rescapp_0.54b5-1.dsc, rescapp_0.54b5-1_amd64.changes, rescapp_0.54b5-1_amd64.deb, rescapp_0.54b5.orig.tar.gz built above into the Rescatux repo buster-dev/rescapp subfolder (If asked you can overwrite duplicated files)
Rebuild local repo
=====================
In one of the chroots where the apt-ftparchive package (apt-utils) has been installed you can run in the repo dir:
./update-repo.sh
Note: You can find update-repo.sh file on the repo-template folder.
Push local repo into sourceforge repo
=====================================
Use filezilla or other sftp client to upload files into http://rescatux.sourceforge.net/repo .
Conclusion
===========
Now you have published the new Rescapp Debian packages and Rescatux build scripts can make use of them.
+2
View File
@@ -54,6 +54,8 @@ https://www.supergrubdisk.org/rescatux/
To know how to install Rescapp, please read the INSTALL file in the source code tarball.
To know how to publish Rescapp, please read the PUBLISH file in the source code tarball.
If you happen to find a bug in Rescapp, please use the issue tracker on github:
https://github.com/rescatux/rescapp/issues
+247
View File
@@ -0,0 +1,247 @@
<b>If you are using a non-free Debian live cd you might want to check <a href="README.non-free.html">README.non-free.html</a> instead.</b>
<hr/>
<pre>
# ------------------------------------------------------------
# Debian Buster 10 (i386) - Instructions - BEGIN
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ buster-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Debian Buster 10 (i386) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Debian Stretch 9 (i386) - Instructions - BEGIN
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ stretch-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Debian Stretch 9 (i386) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Debian Jessie 8 (i386) - Instructions - BEGIN
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ jessie-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Debian Jessie 8 (i386) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Debian Buster 10 (amd64) - Instructions - BEGIN
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ buster-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Debian Buster 10 (amd64) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Debian Stretch 9 (amd64) - Instructions - BEGIN
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ stretch-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Debian Stretch 9 (amd64) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Debian Jessie 8 (amd64) - Instructions - BEGIN
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ jessie-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Debian Jessie 8 (amd64) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Ubuntu Xenial 16.04 (amd64) - Instructions - BEGIN
# First of all
# Add universe to your sources.list
# if it's not there
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ xenial-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Ubuntu Xenial 16.04 (amd64) - Instructions - END
# ------------------------------------------------------------
# ------------------------------------------------------------
# Ubuntu Artful 17.10 (amd64) - Instructions - BEGIN
# First of all
# Add universe to your sources.list
# if it's not there
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ artful-dev main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
# Ubuntu Artful 17.10 (amd64) - Instructions - END
# ------------------------------------------------------------
</pre>
+56
View File
@@ -0,0 +1,56 @@
<h2> Why non-free?</h2>
Because you have some special hardware in your computer/laptop which doesn't behave correctly with free-as-freedom drivers only.
Some examples might be:
<ul>
<li>Not getting a graphical desktop but a blank screen.</li>
<li>Getting unusable video resolutions.</li>
<li>Wifi not working.</li>
</ul>
<h2>Where do I download non-free version of Rescatux?</h2>
Rescatux does not release a non-free version of Rescatux because of <a href="https://www.gnu.org/philosophy/free-sw.en.html">ethics</a>.
<h2>But I need help to repair my computer. Please help me!</h2>
Well, you can just use a Debian non-free live cd/usb and install rescapp on top of it.
It's almost as if you had Rescatux but without SELinux support (mostly needed for Fedora/Redhat/CentOS systems).
<h2>Where do I download those non-free Debian live cds?</h2>
<br/>
You can find the latest non-free stable releases for Debian live here:
<a href="https://cdimage.debian.org/mirror/cdimage/unofficial/non-free/cd-including-firmware/current-live/amd64/iso-hybrid/">Current non-free live images</a>.
The current Debian version as of 2019 is buster. Rescapp is based on buster and buster will last for about two years.
<br/>
You should aim at the lxqt version, e.g. download <a href="https://cdimage.debian.org/mirror/cdimage/unofficial/non-free/cd-including-firmware/current-live/amd64/iso-hybrid/debian-live-10.1.0-amd64-lxqt+nonfree.iso">debian-live-10.1.0-amd64-lxqt+nonfree.iso</a>.
<br/>
You may want to use an older version: <a href="https://cdimage.debian.org/mirror/cdimage/unofficial/non-free/cd-including-firmware/archive/10.0.0-live+nonfree/amd64/iso-hybrid/debian-live-10.0.0-amd64-lxqt+nonfree.iso">debian-live-10.0.0-amd64-lxqt+nonfree.iso</a> if the newest 10.1.0 version features unusable keyboard+mouse in your specific computer model.
<br/>
You can use other graphical live cd versions other than the lxqt one, but be aware that you may have to download more packages.
<br/>
<h2> Rescapp installation on non-free Debian live cds.</h2>
First of all make sure that your non-free Debian live cd has a working internet connection.
<br/>
<b>TIP</b>: At this point you may want to visit this page from your non-free live cd so that it's easier to copy and paste.
<br/>
Then at the menu choose <b>System Tools</b> then <b>Qterminal</b>.
<br/>
Copy and paste this single line in a go and press enter.
<pre>
sudo apt update ; sudo apt install wget ; wget "http://rescatux.sf.net/repo/rescapp-nonfree-install.sh" -O rnfi.sh ; chmod +x rnfi.sh ; sudo ./rnfi.sh
</pre>
Please wait untill all the packages are installed and configured. Once the <i>user@debian:~$</i> prompt is back you can close the Qterminal window.
<br/>
<h2> How do I start repairing my computer ? </h2>
In order to start rescapp, on the menu choose <b>Other</b> then <b>rescapp</b>.
<h2>Additional notes</h2>
<ul>
<li>
Sometimes the rescapp version for amd64 repo is not in sync with the one that Rescatux uses (i386). If you feel this method installs a too old version of Rescapp please complain on <a href="https://github.com/rescatux/rescapp/issues">rescapp github issues</a>.
</li>
<li>
If you have problems using this method, please do not open a bug on the Rescatux github issues page but instead, on the <a href="https://github.com/rescatux/rescapp/issues">rescapp github issues</a>. Please specify in your bug reports which Debian non-free live cd filename you were using exactly.
</li>
</ul>
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
cat << EOF > /etc/apt/sources.list.d/rescatux.list
deb http://rescatux.sourceforge.net/repo/ buster-dev main
EOF
apt -o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update
DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install rescapp
+167
View File
@@ -0,0 +1,167 @@
#!/bin/bash
declare -A description
# I only declare whatever I want to make public
description["jessie-dev"]="Debian Jessie 8"
description["stretch-dev"]="Debian Stretch 9"
description["buster-dev"]="Debian Buster 10"
description["xenial-dev"]="Ubuntu Xenial 16.04"
description["artful-dev"]="Ubuntu Artful 17.10"
README_HTML_FILE="README.html"
function generate_top_instructions () {
cat << EOF
<b>If you are using a non-free Debian live cd you might want to check <a href="README.non-free.html">README.non-free.html</a> instead.</b>
<hr/>
<pre>
EOF
}
function generate_bottom_instructions () {
cat << EOF
</pre>
EOF
}
function generate_inner_instructions () {
nsection="${1}"
narch="${2}"
ndistro="${3}"
if echo ${nsection} | grep 'live-boot' > /dev/null 2>&1 ; then
return 0
fi
if [ "${description[$nsection]}x" != "x" ] ; then
cat << EOF
# ------------------------------------------------------------
# ${description[$nsection]} (${narch}) - Instructions - BEGIN
EOF
if [ "${ndistro}" = "ubuntu" ] ; then
generate_ubuntu_extra_instructions
fi
cat << EOF
# Create this file:
# /etc/apt/sources.list.d/rescatux.list
# with this content:
deb http://rescatux.sourceforge.net/repo/ ${nsection} main
# Till everything is signed you need this workaround:
sudo apt -o Acquire::AllowInsecureRepositories=true \\
-o Acquire::AllowDowngradeToInsecureRepositories=true \\
update
# Finally you can install rescapp:
apt-get install rescapp
# Just say yes when they tell you the package cannot be authenticated
# Ignore lilo warning when installing rescapp (just press enter)
EOF
# Might be useful for extra bottom instructions function in the future
cat << EOF
# ${description[$nsection]} (${narch}) - Instructions - END
# ------------------------------------------------------------
EOF
fi
}
function generate_ubuntu_extra_instructions () {
cat << EOF
# First of all
# Add universe to your sources.list
# if it's not there
EOF
}
### MAIN SCRIPT BEGIN
generate_top_instructions > ${README_HTML_FILE}
ndistro="debian"
# Debian - i386
for narch in i386 ; do
for nsection in buster buster-dev buster-live-boot buster-live-boot-dev stretch stretch-dev jessie jessie-dev ; do
if [ ! -d "dists/${nsection}/main/binary-${narch}/" ] ; then
mkdir -p "dists/${nsection}/main/binary-${narch}/"
fi
apt-ftparchive packages ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Packages.gz
apt-ftparchive sources ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Sources.gz
apt-ftparchive packages ${nsection} > dists/${nsection}/main/binary-${narch}/Packages
apt-ftparchive sources ${nsection} > dists/${nsection}/main/binary-${narch}/Sources
generate_inner_instructions ${nsection} ${narch} ${ndistro} >> ${README_HTML_FILE}
done
done
ndistro="debian"
# Debian - amd64
for narch in amd64 ; do
for nsection in buster buster-dev buster-live-boot buster-live-boot-dev stretch stretch-dev jessie jessie-dev ; do
if [ ! -d "dists/${nsection}/main/binary-${narch}/" ] ; then
mkdir -p "dists/${nsection}/main/binary-${narch}/"
fi
apt-ftparchive packages ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Packages.gz
apt-ftparchive sources ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Sources.gz
apt-ftparchive packages ${nsection} > dists/${nsection}/main/binary-${narch}/Packages
apt-ftparchive sources ${nsection} > dists/${nsection}/main/binary-${narch}/Sources
generate_inner_instructions ${nsection} ${narch} ${ndistro} >> ${README_HTML_FILE}
done
done
ndistro="ubuntu"
# Ubuntu
for narch in amd64 ; do
for nsection in xenial xenial-dev artful artful-dev ; do
if [ ! -d "dists/${nsection}/main/binary-${narch}/" ] ; then
mkdir -p "dists/${nsection}/main/binary-${narch}/"
fi
apt-ftparchive packages ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Packages.gz
apt-ftparchive sources ${nsection} | gzip -c > dists/${nsection}/main/binary-${narch}/Sources.gz
apt-ftparchive packages ${nsection} > dists/${nsection}/main/binary-${narch}/Packages
apt-ftparchive sources ${nsection} > dists/${nsection}/main/binary-${narch}/Sources
generate_inner_instructions ${nsection} ${narch} ${ndistro} >> ${README_HTML_FILE}
done
done
generate_bottom_instructions >> ${README_HTML_FILE}