3 Likes
14 Comments
2 Shares
GNU Linux Debian - very fast and easy semi-automatic online install Debian 11 (non-free)
many users have/had macbooks.
what was/still is great: OSX can be reinstalled over internet! (no more searching for licence keys or setup sticks/DVDs/CDs/)
given the fact – that once installed – GNU Linux Debian can boot (almost) anywhere, the fastest and easiest way to “install” it is to simply 1:1 copy it on whatever the user wants to boot from (harddisk or usb stick (some sticks can not be made bootable, try at least 3 different vendors)).
So… this install script 1:1 copy installs Debian 11 (non-free) on any laptop/desktop/server (depending on internet speed) very fast & easy.
The process can be automated (on similar hardware or on hardware where /dev/sda is always the device the user wants to 1:1 overwrite).
This script install process is almost like OSX 🙂 but “semi-automatic” to double ask, not to overwrite the wrong (USB attached?) disk.
it’s based on the non-free version, because it is intended to allow new users that never tested GNU Linux Debian (with a MATE Desktop) a “it just works” turnkey experience.
Is the Free version better?
If the user has concerns about surveillance/spying and needs maximum privacy than it is probably better to start with the defautl GNU Linux Debian free version and usually all network-cards/NICs work out of the box (free drivers available 🙂 (but maybe not the wifi cards)
new users: workaround for this pitfall:
Problems might arise with the free version and wifi: (notebooks)
because then the user will probably have to install the appropriate closed source (#evil!) drivers from the the non-free repository with all the spying backdoors that a intel wifi driver might have (after all a network card, is like a small computer, inside a computer, ideal! but then if the BIOS is not LibreBooted… the Intel ME can not be disabled… (some OS allow to permanently disable Intel ME!!!).
… the fight for more privacy and security – seems never ending and goes on.
or alternatively: boot from read-only live DVD or image and when booted up, connect a ext4 or ext3 or fat32 or ntfs formatted USB stick or drive with at least 3GBytes of free space
<span style="color: #00ffff;">chmod +x name-of-script.sh</span>; # mark it runnable
-
<span style="color: #00ffff;">su - root</span>; # become root
<span style="color: #00ffff;">/name-of-script.sh /dev/sdX</span>; # run it, passing the device Debian 11 should be installed on
- will download ~2.5Gbytes image.gz to current directory (the usb-stick-drive and store it there permanently for later re-use)
- curl can resume interrupted downloads# sdX is the device the user wants to install Debian 11 on
<span style="color: #00ffff;">/scripts/install_debian_from_image.sh /dev/sdX
</span>
process complete? reboot & “it just works”?
[video width=”306″ height=”194″ mp4=”https://dwaves.de/wp-content/uploads/2022/01/happyness-drum-and-bass-dance-of-success.mp4″\]\[/video\]
want to use the complete harddisk not just the 100GBytes? two possibilities:
<span style="color: #00ffff;">vim /scripts/install_debian_from_image.sh</span>
<span style="color: #ff6600;">#!/bin/bash
DEBIAN_IMAGE=debian11_amd64_non_free_drivers_mate_libre_firefox.img.gz
DOWNLOAD=https://dwaves.de/downloads/$DEBIAN_IMAGE
# define colors
RED='\033[0;31m'
WHITE='\033[0;37m'
YELLOW='\033[0;33m'
COLOR_OFF='\033[0m' # reset color to default
echo -e "${WHITE}=== download and 1:1 copy debian.img.gz to $1 ===${COLOR_OFF}\n"
if [ -z "$1" ]
then
echo "please pass device like this: /dev/sdx
TARGET THE WHOLE DEVICE (sdb)
NOT A PARTITION! (sdb1)"
else
echo -e "${RED}this script is meant to be run from an live-cd or usb stick (so $1 should be an OFFLINE filesystem (not currently running)"
echo "please read carefully, a mistake could overwrite critical data!!!"
echo -e "physically disconnect all critical data-drives before procedure!!!${COLOR_OFF}\n"
echo ""
echo "========== do you want to copy the $DEBIAN_IMAGE image on device $1 ?"
echo -e "${YELLOW}~3GBytes of disk space is needed in the current directory${COLOR_OFF}\n"
pwd
echo "=========== harddisk overview";
echo "==== where is what";
lsblk -o 'NAME,MAJ:MIN,RM,SIZE,RO,FSTYPE,MOUNTPOINT,UUID'
smartctl -i $1;
echo ""
echo -e "${YELLOW}"
read -p "CONTINUE? (y/n)" choice
case "$choice" in
y|Y ) echo "yes";;
n|N ) echo "no";;
* ) echo "invalid";;
esac
echo "installing required software for fast multi threaded decompression of image (pigz)"
echo "and showing progress during dd (pv)"
echo -e "${COLOR_OFF}\n"
apt update
apt install pv pigz curl
echo -e "${YELLOW}starting download of $DOWNLOAD... please stand by${COLOR_OFF}\n"
curl -L -O -C - $DOWNLOAD;
echo -e "${YELLOW}starting download of checksum $DOWNLOAD.sha512sum.txt ... please stand by${COLOR_OFF}\n"
curl -L -O -C - $DOWNLOAD.sha512sum.txt;
echo "verify sha512sum..."
cat "./$DEBIAN_IMAGE.sha512sum.txt" | sha512sum -c
if [ $? != 0 ]; then
echo -e "${RED}Checksum failed. aborting script. maybe $DEBIAN_IMAGE corrupted during download. please try to re-run the script." >&2
echo -e "${COLOR_OFF}\n"
exit 1
fi
echo -e "${YELLOW}starting write process...${COLOR_OFF}\n"
umount $1*;
dd if=./$DEBIAN_IMAGE of=$1 status=progress; sync;
pigz -dc $DEBIAN_IMAGE | pv | dd bs=1M of=$1; sync;
## single core
### gunzip -c /path/to/image.img.gz | pv | dd of=$1; # write image to usb stick
echo -e "${YELLOW}the image $DEBIAN_IMAGE was written to stick $1. process finished. try booting it now :)${COLOR_OFF}\n"
fi
</span>
#linux #gnu #gnulinux #opensource #administration #sysops #gnu-linux #debian #osx #setup #installation #breeze #easy #fast #debian11 #bullseye
Originally posted at: https://dwaves.de/2022/01/28/gnu-linux-debian-very-fast-and-easy-semi-automatic-online-install-debian-11-non-free/
Bonjour tout le monde, je suis #nouveauici.
C'est avec plaisir que je rejoins votre réseau, à la découverte de nouveaux horizons.
Retraité depuis quelques années, je voyage beaucoup entre le sud de la Belgique (Ardennes) et le sud de la France (Hérault), écartelé (avec beaucoup de bonheurs) entre mes enfants et petits-enfants.
Je suis passionné de photographie et de cartographie (OpenStreetMap et HOT)
Mes centres d'intérêt sont #debian11, #debian11bullseye, #nature, #photographie, #OpenStreetMap, #randonnée et #randonnées.
Merci de votre accueil.
https://linuxfr.org/news/sortie-de-debian-11-bullseye
#Debian #Debian11 #DebianBullseye #Bullseye #GNU #Linux #LogicielLibre
#Debian11 #DebianBullseye #Debian #Bullseye #GNU #Linux #LogicielLibre