Commit 61328faa authored by arpinux's avatar arpinux
Browse files

passage des modules sur un dépôt externe au format debian

parent 4a407260
nakedeb-amd64/
nakedeb-i386/
modules
cache
latotale
nakeDeb
=======
# nakeDeb
a naked Debian -but safe for work- by arpinux
WTFPL © 2020-2021 https://nakedeb.arpinux.org
2021-07-xx - nakedeb-1.4
------------------------
* mise à jour Debian 11.0
* intégration des modules dans un dépôt externe au format debian
https://nakedeb.arpinux.org/repo
* mise à jour du script de build
* mise à jour de la documentation et du man nakedeb
* correction de la page WebIRC (bad iframe)
......@@ -16,13 +18,13 @@ WTFPL © 2020-2021 https://nakedeb.arpinux.org
* suppression de l'instance searx
* correction du mode d'installation expert (merci ospring)
* avertissement de la conf réseau dans la doc (merci Mr.S)
* ajout des principaux firmwares dans la version non-free pour une
* ajout des principaux firmwares dans la version non-free pour une
compatibilité accrue : firmware-linux firmware-linux-nonfree
firmware-misc-nonfree firmware-iwlwifi intel-microcode firmware-realtek
amd64-microcode firmware-amd-graphics bluez-firmware firmware-atheros
firmware-bnx2 firmware-bnx2x firmware-ipw2x00 firmware-brcm80211
firmware-b43-installer firmware-b43legacy-installer
* ajout de l'option 'full' qui complète les nonfree pour obtenir les
* ajout de l'option 'full' qui complète les nonfree pour obtenir les
firmwares présents dans la Debian-nonfree + une série d'applications.
* refonte du logo
......
nakeDeb sources content
=======================
les sources nakeDeb contiennent de quoi construire :
- la distribution livrée sous forme d'ISO,
- les paquets-modules au format debian (.deb)
- la documentation (nakedhelp)
les sources nakeDeb contiennent de quoi construire
la distribution livrée sous forme d'ISO
les paquets additionnels sont issus du dépôt git
https://framagit.org/3hg/nakedpkgs
[auto](/auto)
-------------
......@@ -17,6 +17,7 @@ options de lb config pour toutes les versions
[config](/config)
-----------------
- [config/archives](/config/archives/) : dépôt et clé gpg nakeDeb
- [config/hooks](/config/hooks/) : scripts lancés lors du build dans le chroot,
juste avant la compression en squashfs
- [config/includes.binary](config/includes.chroot/) : fichiers de configuration
......@@ -28,11 +29,6 @@ pour isolinux et grub, les lanceurs pour le liveCD
- nakedeb.list.binary pour le live : (les paquets UEFI pour une installation
hors-ligne)
[pkgs](/pkgs)
-------------
sources des paquets externes aux dépôts Debian et ajoutés lors du build
chaque dossier contient les sources et un script de build pour construire le .deb
[ressources](/ressources)
-------------------------
certaines ressources sont récupérées directement lors du build
......@@ -49,11 +45,6 @@ pour les version non-free et full (récupéré lors du build)
- [ressources/trackers.txt](ressources/trackers.txt) : liste des trackers
publics à coller lors de la création des .torrents
[mkmodules](/mkmodules)
-----------------------
script de génération des paquets debian issus des modules nakeDeb.
utilisé pour tests. commenté.
[nakedbuild](/nakedbuild)
-------------------------
script principal de construction de l'ISO. commenté.
......
......@@ -12,8 +12,7 @@ construire une ISO :
* éditer le script 'nakedbuild' pour ajuster les variables et le $USER
* éditer le contenu de 'auto/' et 'config/' selon vos besoins
* ajuster les paquets contenus dans pkgs/foo selon vos besoins
* vérifier les mises à jour de bashmount et veracrypt
* vérifier les mises à jour de veracrypt
* lancer **en mode administrateur** :
* `./nakedbuild 32` > nakedeb i386 (~800M)
* `./nakedbuild 64` > nakedeb amd64 (~750M)
......
......@@ -8,6 +8,3 @@ find config/hooks/ -type l | xargs --no-run-if-empty rm -f
rm -Rf config/packages config/includes.chroot \
config/includes config/includes.bootstrap \
config/includes.source config/hooks/live
find pkgs -iname "*.deb" -exec rm -f {} \;
find pkgs -iname "*.buildinfo" -exec rm -f {} \;
find pkgs -iname "*.changes" -exec rm -f {} \;
This diff is collapsed.
This diff is collapsed.
## nakeDeb bullseye ##
deb http://nakedeb.arpinux.org/repo/debian bullseye main
## nakeDeb unstable ##
#deb http://nakedeb.arpinux.org/repo/debian unstable main
## nakeDeb bullseye ##
deb http://nakedeb.arpinux.org/repo/debian bullseye main
## nakeDeb unstable ##
#deb http://nakedeb.arpinux.org/repo/debian unstable main
......@@ -3,6 +3,10 @@
adduser user-setup accountsservice desktop-base sudo gnupg
xdg-utils xdg-user-dirs-gtk gvfs-fuse gvfs-backends gvfs-bin
openssh-client command-not-found eject zram-tools
## naked ---------------------------------------------------------------
bashmount clarity-icon-theme eyecandy fluxbox-automenu nakedbase
nakedconky nakeddots nakedfluxbox nakedhelp nakedi3wm nakedlook
nakedroot nakedtools
## term ----------------------------------------------------------------
rxvt-unicode xterm dvtm
## filer & dep ---------------------------------------------------------
......
#!/bin/bash
NKDIR="$(realpath "$(dirname "$0")")"
LOG="${NKDIR}/nakedpkgs-build.log"
# open log -------------------------------------------------------------
echo -e "INFO: building nakeDeb debian packages\n`date`\n" > ${LOG}
# cleanup --------------------------------------------------------------
find pkgs -iname "*.deb" -exec rm -f {} \;
find pkgs -iname "*.buildinfo" -exec rm -f {} \;
find pkgs -iname "*.changes" -exec rm -f {} \;
# build debs -----------------------------------------------------------
for p in ${NKDIR}/pkgs/*; do cd $p; ./mkdeb; cd ${NKDIR}; done | tee -a ${LOG}
echo -e "\nINFO: nakedpkgs lintian output\n" >> ${LOG}
find ${NKDIR}/pkgs -iname "*.deb" -exec lintian -q {} >> ${LOG} \;
# setup modules DIR ----------------------------------------------------
mkdir -p ${NKDIR}/modules
# move debs & log in modules -------------------------------------------
find ${NKDIR}/pkgs -iname "*.deb" -exec mv {} ${NKDIR}/modules/ \;
mv ${LOG} ${NKDIR}/modules/
# clean deb build files ------------------------------------------------
find pkgs -iname "*.buildinfo" -exec rm -f {} \;
find pkgs -iname "*.changes" -exec rm -f {} \;
# compress & move modules sources --------------------------------------
cd ${NKDIR}
echo -e "INFO: compressing nakedmodules sources\n"
tar cvzf nakedmodules-src.tar.gz pkgs/
mv nakedmodules-src.tar.gz ${NKDIR}/modules/
exit 0
......@@ -142,24 +142,6 @@ if dpkg-query -W apt-cacher-ng &>"/dev/null"; then
lb config --apt-http-proxy "${http_proxy}"
fi
# setup debs -----------------------------------------------------------
# construction des paquets-modules intégrés à nakeDeb
echo -e "----\nINFO: building deb's" >> ${LOG}
mkdir -p config/packages
#cleaning
find pkgs -iname "*.deb" -exec rm {} \;
find pkgs -iname "*.buildinfo" -exec rm -f {} \;
find pkgs -iname "*.changes" -exec rm -f {} \;
#building debs
for p in pkgs/*; do cd $p; ./mkdeb; cd ${NKDIR}; done | tee -a ${LOG}
echo -e "----\nINFO: nakedpkgs lintian output" >> ${LOG}
find pkgs -iname "*.deb" -exec lintian -q {} >> ${LOG} \;
find pkgs -iname "*.deb" -exec mv {} config/packages \;
#check debs
if [ "$(ls pkgs | wc -l)" != "$(ls config/packages | wc -l)" ]; then
echo -e "----\nERROR: mauvaise construction des modules -- arrêt\n"; exit 1
fi
# build ISO ------------------------------------------------------------
echo -e "----\nINFO: construction de ${VERSION}-${ARCH}-${DISTRO}\n" >> ${LOG}
lb build
......
bashmount 4.3.4 (2021-02-01)
- Improve .desktop file @nakedev
bashmount 4.3.3 (2020-12-31)
- Add icon and .desktop file @nakedev
bashmount 4.3.2 (2020-09-08)
- Fix colourize=0
bashmount 4.3.1 (2020-08-22)
- Use sed s/ instead of y/ as the strings are different lengths
bashmount 4.3.0 (2020-07-02)
- Fix bug when opening crypto_LUKS devices directly
- Fix error message when an unmount fails
- Fix bug that inadvertently hid disks with no partitions
bashmount 4.2.5 (2020-06-12)
- Tweak appearance
bashmount 4.2.4 (2020-06-12)
- Tweak appearance
bashmount 4.2.3 (2020-06-12)
- Run non-udisks commands with sudo
bashmount 4.2.2 (2020-06-12)
- Fix handling of non-udisks mounting
bashmount 4.2.1 (2020-06-12)
- Improve display of custom commands
bashmount 4.2.0 (2020-06-12)
- Allow to mount/unmount/eject/open directly on crypto_LUKS devices
- Rename default_mount_options to mount_options
- Remove show_full_device_names option
- Remove ability to override mount/unmount commands
- More code cleanup
Thanks to nick87720z (aka https://github.com/nick87720z) for:
- https://github.com/jamielinux/bashmount/pull/21
- Use nicer unicode characters for some UI elements, configurable with
the 'pretty' option.
Thanks to Jonatan Olofsson (aka https://github.com/jonatanolofsson) for:
- https://github.com/jamielinux/bashmount/pull/22
- Treat Ctrl-D the same as 'q' (ie, quit).
- https://github.com/jamielinux/bashmount/pull/23
- Put default filemanager inside subshell to avoid lock on unmount
bashmount 4.1.0 (2020-06-11)
- Only require one key press in device submenu
bashmount 4.0.1 (2020-06-11)
- Improve formatting
- Fix help text
bashmount 4.0.0 (2020-06-11)
- Cleanup code, improve style and readability
- Fix some typos
- Improve some of the error messages
- Make the UI wider (now 77 characters) to accommodate more information
- Display device size and mountpoint in main menu
- Improve column alignment
- Run `udisksctl --power-off` when ejecting, if udisksctl is available
- Tweak the default filemanager ($SHELL) to not exit afterwards
- Replace \x20 in device labels with a space character
- Handle LUKS devices better
- Change the separator from = to - for a lighter appearance
- Reduce times you have to press [enter] to continue (eg, skip if the
command was successful)
- Pressing [r] and [enter] refreshes the device list, but just pressing
[enter] by itself has always worked too. Now the help text prefers
[enter] to make it discoverable and reduce key presses.
bashmount 3.2.0 (2014-04-19)
- Shorten long device names and add padding so that device labels all
align vertically, making things easier to read
- Add show_full_device_names option to bashmount.conf
bashmount 3.1.1 (2014-04-04)
Thanks to Lukas B. (aka https://github.com/vitamins) for these changes:
- Avoid forked grep process
bashmount 3.1.0 (2014-04-04)
- Add logic to display disks with no partitions (eg, internal storage on
some portable media devices)
bashmount 3.0.3 (2014-03-24)
Thanks to Lukas B. (aka https://github.com/vitamins) for these changes:
- Save UI space by removing bashmount header
- Add `--version` command-line option
bashmount 3.0.2 (2014-03-23)
Thanks to Lukas B. (aka https://github.com/vitamins) for these changes:
- Fix newline in UI (again)
- Use new syntax for cryptsetup
bashmount 3.0.1 (2014-03-23)
- Default to 'noatime' instead of 'relatime' in the default mount options
Thanks to Lukas B. (aka https://github.com/vitamins) for these changes:
- When udisks=1 and udisksctl is not available, fail with a message
- Fix handling of read-only mounting
bashmount 3.0.0 (2014-03-23)
- Allow pressing [enter] to refresh device list
bashmount 3.0.0beta2 (2014-03-23)
- Fix newline in UI
bashmount 3.0.0beta1 (2014-03-23)
- Autodetect the presence of udisksctl, but also allow to manually disable
the use of udisks
- Re-order the configuration file and remove redundant options
- Allow blacklisting by TYPE
- The first three custom commands are now built-in to bashmount, so only
custom4_command, custom5_command and custom6_command are configurable
- Remove show_device_path option, and instead always show the device path
bashmount 3.0.0alpha1 (2014-03-23)
Many thanks to Lukas B. (aka https://github.com/vitamins) for porting
bashmount to use lsblk where appropriate and a variety of other changes:
- Information retrieval is now based on `lsblk` instead of `udisksctl`,
which allows us to get rid of a lot of horrible parsing
- Devices are sorted by internal media, removable media and optical media
- Only partitions are listed, no disks
- Opened luks containers are also listed by default
Configuration file:
- Add "mount_command" and "unmount_command" which can be configured by the
user
- "optical_devices" and "removable_devices" are no longer present
- "show_internal" is set to '1' by default
- "show_removable_device_filename" and "show_optical_device_filename" have
been replaced by a single variable named "show_device_path"
- "fancy_sort" is no longer present
bashmount 2.0.0alpha1 (2013-08-31)
- Port to udisks2
- New configuration file
- New dependency on `eject`
bashmount 1.6.2 (2012-02-06)
- Add some comments
- Add AUTHORS, INSTALL and README.pod files, which obsolete the README
file
- Add NEWS file, which obsoletes the ChangeLog file
- Add man page
- Change default filemanager to the shell when no configuration file can
be found
bashmount 1.6.1 (2012-02-05)
- Fix a small bug in print_submenu_commands()
- Keep lines of code more strictly within 80 character width limit
- Change default filemanager to the shell
- Aesthetic improvements to the code
bashmount 1.6.0 (2011-11-23)
- Add ability to blacklist devices based on arbitrary string matches
bashmount 1.5.3 (2011-11-04)
- Make sure the mount status is up to date in print_submenu_commands()
bashmount 1.5.2 (2011-11-04)
- Fix bugs in print_submenu_commands() due to an incorrect variable
declaration and a typo
bashmount 1.5.1 (2011-09-20)
- Fix bug in fancy_sort() due to an incorrect variable declaration
bashmount 1.5.0 (2011-09-16)
- Refactor code
- Unset GREP_OPTIONS in case the user has it set in their environment
- Move a misplaced printf '\n'
- Fix handling of functions that have not been set in the configuration file
- Remove specification of the udisks command path in the configuration file
- Add some more comments
bashmount 1.4.1 (2011-09-08)
- Add declaration of two variables
bashmount 1.4.0 (2011-09-06)
- Refactor code
- Add options to run any arbitrary command immediately after a successful
mount or unmount operation, such as commands to spin down a device
- If an operation fails in the device sub-menu, do not return to the top
menu
bashmount 1.3.1 (2011-05-31)
- Fix display of optical device number
bashmount 1.3.0 (2011-05-26)
- Fix declaration of arrays
- Fix handling of devices with 10 or more partitions
- Add a fancy_sort option in the configuration file for a very hack way to
make sure /dev/sdc11 does not come before /dev/sdc2 in the menu (which
occurs due to a shortcoming of the sort command)
- Use printf instead of echo
bashmount 1.2.0 (2011-05-23)
- Refactor code
- Fix "unmount all" command
- Exit correctly if there are errors on sourcing the configuration file
- Various minor aesthetic improvements
bashmount 1.1.4 (2011-05-19)
- Refactor code
bashmount 1.1.3 (2011-05-08)
- Fix numbering and display of devices
bashmount 1.1.2 (2011-05-08)
- Improve configuration file
bashmount 1.1.1 (2011-05-08)
- Fix handling of /dev/mmcblk* devices both in the script and in the
configuration file
bashmount 1.1.0 (2011-05-08)
- Improve configuration file
- Improve help screen
- Add support for matching /dev/mmcblk* devices such as SD card readers
bashmount 1.0.0 (2011-04-27)
- Initial release
# bashmount
`bashmount` is a command-line tool to easily manage removable media.
![bashmount screenshot](./screenshots/menu.png)
![bashmount submenu screenshot](./screenshots/submenu.png)
## Installation
1. Install the
[script](https://raw.githubusercontent.com/jamielinux/bashmount/master/bashmount)
somewhere in your path (eg, `/usr/bin/bashmount`).
2. _Optional:_ Install the
[configuration file](https://raw.githubusercontent.com/jamielinux/bashmount/master/bashmount.conf)
at either `/etc/bashmount.conf` or `$HOME/.config/bashmount/config`.
There are also packages available for:
- [Fedora](https://src.fedoraproject.org/rpms/bashmount)
- [Arch Linux](https://aur.archlinux.org/packages/bashmount/)
- [Gentoo](https://packages.gentoo.org/packages/sys-fs/bashmount)
Add something like this to your `$HOME/.bashrc` to make life easier:
```
alias bm='bashmount'
```
### Dependencies
* `bash`
* `eject`
* _Optional:_ `udisks2`
`udisks2` is recommended, so that regular users can manage removable media
without sudo. By default, `udisks2` is auto-detected, but you can force use
of `udisks2` on or off in the configuration file.
## Configuration
`bashmount` works fine without a configuration file, but there's some neat
things you can do.
Have a look at the example
[configuration file](https://github.com/jamielinux/bashmount/blob/master/bashmount.conf).
- Open your desired file manager at the mountpoint of a device. (The default is
to open in your terminal.)
- Hide certain devices from the list.
- Configure custom commands to run on removable devices.
- Automatically run custom commands after a mount or unmount.
This diff is collapsed.
.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
.if t \{\
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
.if n \{\
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
.\}
.if t \{\
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
. \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "BASHMOUNT 1"
.TH BASHMOUNT 1 "2020-10-02" "bashmount " "bashmount"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
bashmount \- tool to mount and unmount removable media
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
\&\fIbashmount\fR
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
bashmount is a menu-driven bash script that can use different backends to
easily mount, unmount or eject removable devices without dependencies on any