Projekte/HW4F/Installation: Difference between revisions

From dezentrale wiki
< Projekte‎ | HW4F
Jump to navigation Jump to search
(neuer Eintrag zu HP 520G Laptops)
(6 intermediate revisions by 2 users not shown)
Line 43: Line 43:
 
Hinweis:
 
Hinweis:
 
Hardware WLAN Killswitch links neben dem Einschalter muss "blau" leuchten.
 
Hardware WLAN Killswitch links neben dem Einschalter muss "blau" leuchten.
  +
  +
=== HP 520G ===
  +
  +
==== Bios-Passwort zurücksetzen ====
  +
mit F10 ins BIOS gehen
  +
dreimal leeres Passwort <Enter> eingeben
  +
es wird ein String der Art i12345678 ausgegeben
  +
alles (Groß/Klein des "i" beachten) eingeben bei
  +
https://www.biosbug.com/hp-8-digit-new/
  +
Rechner neu starten und BIOS mit der Zahlensequenz öffnen
  +
Passwörter löschen, an vielen Stellen auf Legacy und PXE umstellen
   
 
== Windows Powershell ==
 
== Windows Powershell ==
Line 84: Line 95:
 
#!/bin/bash
 
#!/bin/bash
 
MPATH="/media/zusatz"
 
MPATH="/media/zusatz"
  +
LABEL="zusatz"
mkdir "$MPATH"
 
  +
[ -d "$MPATH" ] || mkdir -v "$MPATH"
 
lsblk
 
lsblk
 
DEVICE="$(lsblk -po +ROTA| grep -E '/dev/sd.+disk.+1$'|cut -d\ -f1)"
 
DEVICE="$(lsblk -po +ROTA| grep -E '/dev/sd.+disk.+1$'|cut -d\ -f1)"
Line 97: Line 109:
 
echo -ne '\r'
 
echo -ne '\r'
 
done
 
done
  +
### ISOLATE ERROR ON MISSING PARTITIONING TABLE
  +
parted -s "$DEVICE" -- \
 
unit MiB \
  +
print free
 
parted -s "$DEVICE" -- \
 
parted -s "$DEVICE" -- \
 
unit MiB \
 
unit MiB \
print free \
 
 
mktable gpt \
 
mktable gpt \
 
mkpart primary 1 -1 \
 
mkpart primary 1 -1 \
 
print free \
 
print free \
 
quit
 
quit
  +
### WAIT FOR BLOCK LAYER
 
sleep 1;
 
sleep 1;
mkfs.ext4 -FL zusatz "${DEVICE}1"
+
mkfs.ext4 -FL "$LABEL" "${DEVICE}1"
  +
### WAIT FOR BLOCK LAYER
 
sleep 1;
 
sleep 1;
 
UUID="$(lsblk -no UUID "${DEVICE}1")"
 
UUID="$(lsblk -no UUID "${DEVICE}1")"
  +
[ -n "$UUID" ] && \
 
echo "UUID=$UUID $MPATH ext4 defaults,noatime 0 0" |tee -a /etc/fstab
 
echo "UUID=$UUID $MPATH ext4 defaults,noatime 0 0" |tee -a /etc/fstab
 
findmnt --verify
 
findmnt --verify
 
mount -av
 
mount -av
  +
chown user:user "$MPATH"
 
else
 
else
 
echo "Doing nothing!"
 
echo "Doing nothing!"

Revision as of 23:17, 25 January 2023

Installation

PCs

Fujitsu Esprimo

Bios Passwort zurücksetzen

Fujitsu Lifebook E751

Bios Passwort zurücksetzen

Easy step on Fujitsu Laptop for remove BIOS password

  • On boot screen Press F2. You must be in Bios setup screen which is (Phoenix SecureCore(tm) Setup Utility)
  • Attempt to login using the following passwords, which are all returned to be invalid but part of the recovery procedure.
    1. 3hqgo3
    2. jqw534
    3. 0qww294e
  • Do not enter any other BIOS passwords, until you get the master password.
  • Enter the hash code to a BIOS password generator site
  • Reset the system (with a long push to the power button) and enter the generated password to access BIOS. PLEASE USE EN_US QWERTY KEYBOARD LAYOUT! ;-)
  • You should be able change the settings. Make sure
    • Supervisor Password
    • to remove the password on Hard Disk and
    • Use the generated password as your current password to clear the Supervisor Password

HP Prodesk 600

Netzwerkboot aktivieren

Schritte im Bios

  1. Security > Networkboot > on
  2. Advanced > Option Rom Policy > PXE Option Roms > umstellen von "do not launch" zu "legacy only"

Laptops

HP Compact 6735S

WLAN Firmware installieren

sudo apt update
sudo apt install firmware-b43-installer
sudo reboot

Hinweis: Hardware WLAN Killswitch links neben dem Einschalter muss "blau" leuchten.

HP 520G

Bios-Passwort zurücksetzen

mit F10 ins BIOS gehen
dreimal leeres Passwort <Enter> eingeben
es wird ein String der Art i12345678 ausgegeben
alles (Groß/Klein des "i" beachten) eingeben bei
https://www.biosbug.com/hp-8-digit-new/
Rechner neu starten und BIOS mit der Zahlensequenz öffnen
Passwörter löschen, an vielen Stellen auf Legacy und PXE umstellen

Windows Powershell

Ist nicht die schönste Lösung! :-D

Powershell Skript herunterladen (Link speichern unter):

https://git.dezentrale.cloud/drbroiler/HW4F-Windows/raw/branch/master/installchocowithtools.ps1

Im Startmenü Powershell "als Administrator ausführen"

In das Download Verzeichnis wechseln (in dem das heruntergeladene Skript liegt) und prüfen welche Dateiendung das Skript hat (evtl. .txt)

cd \Users\user\Downloads

Die Ausführung von Powershell-Skripten ist in der Powershell untersagt, daher muss die Ausführungsrichtlinie geändert werden.

Set-ExecutionPolicy Unrestricted

Frage mit "A (Ja, alle)" beantworten

Powershel Skript ausführen

.\installchocowithtools.ps1

Frage mit "M (Einmal ausführen)" beantworten


Zusatz HDD

Eine Root-Shell ergattern mit. sudo -s

Und folgendes Skript in diese Shell einfügen.

#!/bin/bash
MPATH="/media/zusatz"
LABEL="zusatz"
[ -d "$MPATH" ] || mkdir -v "$MPATH"
lsblk
DEVICE="$(lsblk -po +ROTA| grep -E '/dev/sd.+disk.+1$'|cut -d\  -f1)"

echo -e '\n\n'"Partition and format device:"'\n'"'$DEVICE'"'\n'

read -p "Please confirm: " CONFIRM
if grep -qiE '([yj]|(yes|ja))' <<< "$CONFIRM"; then
for ((i = 3 ; i > 0 ; i-- )); do
        echo -n "Waiting $i";
        sleep 1;
        echo -ne '\r'
done
### ISOLATE ERROR ON MISSING PARTITIONING TABLE
parted -s "$DEVICE" -- \
        unit MiB \
        print free
parted -s "$DEVICE" -- \
        unit MiB \
        mktable gpt \
        mkpart primary 1 -1 \
        print free \
        quit
### WAIT FOR BLOCK LAYER
sleep 1;
mkfs.ext4 -FL "$LABEL" "${DEVICE}1"
### WAIT FOR BLOCK LAYER
sleep 1;
UUID="$(lsblk -no UUID "${DEVICE}1")"
[ -n "$UUID" ] && \
echo "UUID=$UUID  $MPATH ext4 defaults,noatime  0  0" |tee -a /etc/fstab
findmnt --verify
mount -av
chown user:user "$MPATH"
else
        echo "Doing nothing!"
fi