Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. #! /bin/sh
  2. echo Starting LibreSystems Estify GNU/Linux-libre Installer...
  3.  
  4. # don't be alarmed, this blob is actually the ascii art, but compressed.
  5. base64 -d <<<"H4sIAGRe5lkAA61QQQ7DMAi75xXc2krV8qFI9CE8ftgkNJ069bCRaSXG2JBSRFQYOpIMRcx3uY+vvKtkEfPjseoWSUalxonZRz1x6N3x7NqSViAbhvNR8PPrqnEPjHV8kyHSt6EE0YlHQT/ZkVb4LCoN/+oLSWsgteBjQ3SxAN6BJNAx/pIIeUfAo0ONVvFQSLaxtbOB8u61BlexKHTOQOM9ZsTwIjZJcZsSRm7l5+UomtChgVfkO0nVsyh0aVJqF5iQ4O2UtNEBq8cYU/0az1Yx+j+sSnkDwNa+QFwDAAA=" | gunzip
  6. echo "Version 1.0 RTM"
  7. echo "--------------------------------------"
  8.  
  9. DISK="/dev/sda"
  10.  
  11. # step 1: Networking
  12. echo "Do you want to use ethernet or WiFi? (y/N): "
  13. read needsWiFi < /dev/tty
  14. if ( [ "$needsWiFi" == "y" ] ); then
  15. echo "Opening wifi-menu..."
  16. wifi-menu
  17. else
  18. echo "Ok, make sure a ethernet cable is connected."
  19. fi
  20.  
  21. # step 2: HDD Cleaning
  22. echo "Do you want to securely wipe the Storage Device (This will take a long time. This is not needed on a new LibreSystem)? (y/N): "
  23. read needsWiFi < /dev/tty
  24. if ( [ "$needsWiFi" == "y" ] ); then
  25. echo "Starting Full Disk Wipe (filling with random bits). This will take a long time (few hours)..."
  26. # dd if=/dev/urandom of=/dev/sdX; sync
  27. else
  28. echo "Ok, make sure a ethernet cable is connected."
  29. fi
  30.  
  31. # step 3: Formatting and preparing disk.
  32. echo "Loading device-mapper..."
  33. modprobe dm-mod
  34.  
  35. echo "Setting up partition table..."
  36. parted /dev/sdx mklabel msdos
  37.  
  38. echo "Creating partition..."
  39. mkpart part-type fs-type start end
  40.  
  41. cryptsetup -v --cipher serpent-xts-plain64 --key-size 512 --hash whirlpool --iter-time 500 --use-random --verify-passphrase luksFormat /dev/sdXY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement