Compare commits

..

No commits in common. "8eef96ba2145fddeb6ffcbff65ee931a31529c51" and "2395210b763e8a1b5ce84f6ce9ce836b947460d7" have entirely different histories.

5 changed files with 19 additions and 33 deletions

View File

@ -32,7 +32,7 @@ doasuser 'gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"'
doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM' doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM'
doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ set org.gnome.shell.extensions.dash-to-dock preferred-monitor 0' doasuser 'gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ set org.gnome.shell.extensions.dash-to-dock preferred-monitor 0'
doasuser 'gsettings set org.gnome.shell enabled-extensions '"'"'["dash-to-dock@micxgx.gmail.com", "nohotcorner@azuri.free.fr"]'"'"'' doasuser 'gsettings set org.gnome.shell enabled-extensions '"'"'["dast-to-dock@micxgx.gmail.com", "nohotcorner@azuri.free.fr"]'"'"''
#configure favorites #configure favorites
doasuser 'gsettings set org.gnome.shell favorite-apps '"'"'["firefox-esr.desktop", "org.gnome.Nautilus.desktop", "vlc.desktop", "Zoom.desktop", "libreoffice-impress.desktop"]'"'"'' doasuser 'gsettings set org.gnome.shell favorite-apps '"'"'["firefox-esr.desktop", "org.gnome.Nautilus.desktop", "vlc.desktop", "Zoom.desktop", "libreoffice-impress.desktop"]'"'"''

View File

@ -1,3 +1,4 @@
#### Contents of the preconfiguration file (for buster)
### Localization ### Localization
# Preseeding only locale sets language, country and locale. # Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US d-i debian-installer/locale string en_US
@ -30,9 +31,9 @@ d-i netcfg/wireless_wep string
d-i hw-detect/load_firmware boolean true d-i hw-detect/load_firmware boolean true
### Wifi settings ### Wifi settings
#d-i netcfg/wireless_essid CLC-Guest d-i netcfg/wireless_essid CLC-Guest
#d-i netcfg/wireless_security_type wpa d-i netcfg/wireless_security_type wpa
#d-i netcfg/wireless_wpa OneChurch! d-i netcfg/wireless_wpa OneChurch!
### Mirror settings ### Mirror settings
# If you select ftp, the mirror/country string does not need to be set. # If you select ftp, the mirror/country string does not need to be set.
@ -65,7 +66,6 @@ d-i clock-setup/ntp boolean true
### Partitioning ### Partitioning
#Tell disk to use lvm and bypasss confirmations to clear previous lvm, raid.
d-i partman-auto/method string lvm d-i partman-auto/method string lvm
d-i partman-auto-lvm/guided_size string max d-i partman-auto-lvm/guided_size string max
d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/device_remove_lvm boolean true
@ -73,17 +73,20 @@ d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true d-i partman-lvm/confirm_nooverwrite boolean true
#Default partition map all files in one partition
d-i partman-auto/choose_recipe select atomic d-i partman-auto/choose_recipe select atomic
#Tell partman to go without confirmation
d-i partman-partitioning/confirm_write_new_label boolean true d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish d-i partman/choose_partition select finish
d-i partman/confirm boolean true d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true d-i partman/confirm_nooverwrite boolean true
#Force UEFI d-i partman-md/confirm boolean true
d-i partman-efi/non_efi_system boolean false d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-efi/non_efi_system boolean true
### Base system installation ### Base system installation
@ -93,7 +96,7 @@ d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true d-i apt-setup/contrib boolean true
### Package selection ### Package selection
#tasksel tasksel/first multiselect standard, gnome #tasksel tasksel/first multiselect standard, web-server, kde-desktop
# Individual additional packages to install # Individual additional packages to install
#d-i pkgsel/include string openssh-server build-essential #d-i pkgsel/include string openssh-server build-essential
@ -103,9 +106,6 @@ d-i pkgsel/include string firmware-iwlwifi openssh-server curl vlc timeshift
# Allowed values: none, safe-upgrade, full-upgrade # Allowed values: none, safe-upgrade, full-upgrade
#d-i pkgsel/upgrade select none #d-i pkgsel/upgrade select none
#Skip popularity contest
popularity-contest popularity-contest/participate boolean false
### Boot loader installation ### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR # This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine. # if no other operating system is detected on the machine.
@ -117,9 +117,9 @@ d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the MBR can not be # Due notably to potential USB sticks, the location of the MBR can not be
# determined safely in general, so this needs to be specified: # determined safely in general, so this needs to be specified:
#d-i grub-installer/bootdev string /dev/sda d-i grub-installer/bootdev string /dev/sda
# To install to the first device (assuming it is not a USB stick): # To install to the first device (assuming it is not a USB stick):
d-i grub-installer/bootdev string default #d-i grub-installer/bootdev string default
# Use the following option to add additional boot parameters for the # Use the following option to add additional boot parameters for the
# installed system (if supported by the bootloader installer). # installed system (if supported by the bootloader installer).
@ -131,9 +131,6 @@ d-i grub-installer/bootdev string default
# Avoid that last message about the install being complete. # Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note d-i finish-install/reboot_in_progress note
#eject install cd
d-i cdrom-detect/eject boolean false
#### Advanced options #### Advanced options
### Running custom commands during the installation ### Running custom commands during the installation

View File

@ -1,21 +1,12 @@
#!/bin/bash #!/bin/bash
CMD=$1 CMD=$1
if ! command -v parallel-ssh &> /dev/null
then
echo "parallel-ssh could not be found. Attempting to aquire from the repo."
sudo apt install pssh
echo ""
fi
echo -e "You are about to run \e[1;32m$CMD\e[0m on all hosts." echo -e "You are about to run \e[1;32m$CMD\e[0m on all hosts."
run () { run () {
if grep -q "sudo" <<< "$CMD"; then if grep -q "sudo" <<< "$CMD"; then
echo "sudo command detected. Attempting to elevate permissions" echo "sudo command detected. Attempting to elevate permissions"
echo "Please enter your sudo password." parallel-ssh -A -i -x '-tt' -t 0 -h pssh_hosts -l ansible "echo 'ansible' | $CMD && history -c"
read -s SUDOPASS
parallel-ssh -A -i -x '-tt' -t 0 -h pssh_hosts -l ansible "echo '$SUDOPASS' | $CMD && history -c"
else else
parallel-ssh -A -i -x '-tt' -h pssh_hosts -l ansible "$CMD && history -c" parallel-ssh -A -i -x '-tt' -h pssh_hosts -l ansible "$CMD && history -c"
fi fi

View File

@ -1,4 +1,4 @@
#EXAMPLE PASSWD config file #EXAMPLE PASSWD config file
#rename to .passwd.cfg and add a crypt(3) hash password #rename to .passwd.cfg and add a crypt(3) hash password
roothash=notarealpassword rootpassword=notarealpassword
userhash=12345 userpasswort=12345

View File

@ -7,9 +7,7 @@ fi
LOCALIP=$(hostname -I) LOCALIP=$(hostname -I)
source .passwd.cfg . .passwd.cfg
[ -d "webdir" ] && echo "Old config found. Removing." && rm -r webdir
#copy the pre-preseed file and update the passwords from the .passwd.cfg file #copy the pre-preseed file and update the passwords from the .passwd.cfg file
mkdir webdir mkdir webdir