Advertisement
Guest User

Untitled

a guest
Aug 11th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. # Installation Methods and Sources
  2. install
  3. url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-24&arch=x86_64"
  4.  
  5. # Check media before install
  6. #mediacheck
  7.  
  8. # Repos
  9. %include repos-base.ks
  10.  
  11. # Storage and Partitioning
  12. autopart --type=lvm
  13.  
  14. # Bootloader
  15. bootloader --location=mbr --driveorder=sda --boot-drive=sda
  16.  
  17. # Remove All Existing Partitions
  18. clearpart --all --initlabel
  19.  
  20. # Ignore Specified Disks
  21. ignoredisk --only-use=sda
  22.  
  23. # Reinitialize Partition Tables
  24. zerombr
  25.  
  26. # Configure Firewall
  27. #firewall --enable --ssh
  28. firewall --disabled
  29.  
  30. # Configure Network Interfaces # --hostname=fedora
  31. network --bootproto=dhcp --noipv6 --device=link --activate
  32.  
  33. # Configure Keyboard Layouts
  34. keyboard --vckeymap=us --xlayouts=''
  35.  
  36. # Configure Language During Installation
  37. lang en_US.UTF-8 --addsupport=ru_RU.UTF-8
  38.  
  39. # Configure Services
  40. services --disabled=dnf-makecache --enabled=sshd,chronyd
  41.  
  42. # Don't configure the X Window System
  43. skipx
  44.  
  45. # Configure Time Zone
  46. timezone Europe/Moscow
  47.  
  48. # Configure Authentication
  49. auth --enableshadow --passalgo=sha512
  50.  
  51. # Set Root Password
  52. rootpw --plaintext ROOT_PASSWORD --lock
  53.  
  54. # Configure SELinux
  55. selinux --enforcing
  56.  
  57. # Add an Authorized SSH Key
  58. sshkey --username=netforhack "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA73eXowkmv8dyYrz92K47K53fREMOm2MOqOZqd8463f6N1Zb53rxd6SgonnCEJhA4j+lnxmjReNuoZAnBWaphQ6l7PNIY/s5ht+zIUzCCytyz19dDA7QQqXa9VcvQ07BuyTlLafkTgLKUxWlYZQ1LgLARFrBvSWEAwlGqF9Nv5U7lgd+WZ1jf8bARNjhe56Ha9CrkdHoLmBMBN/BroeS1idYYc77LmjEMyoZkKfeX+jmSGgZSjg9NfEfa6x4Qw94guMm8Cxb/+ZOlyt18oduIGDEWG+NBDO5h2tDhitnKlJvQPPkvTg9fi8KZyqLiW8GOXc0xIfuoRQInvVaKGogetw== rsa-key-20160811"
  59. sshkey --username=quko8 ""
  60.  
  61. # Create User Account
  62. user --groups=wheel --name=quko8 --password=qukop --plaintext --shell=/usr/bin/zsh
  63. user --groups=wheel --name=netforhack --password=netforhackp --plaintext
  64.  
  65. # Configure Error Logging During Installation
  66. logging --level=debug
  67.  
  68. # Perform Installation in Text Mode
  69. #text
  70. cmdline
  71.  
  72. # Enable or Disable Initial Setup
  73. firstboot --disable
  74.  
  75. # Reboot After Installation
  76. reboot --eject
  77.  
  78. # Package Selection
  79. %packages
  80. zsh
  81. nano
  82. ps_mem
  83. tmux
  84.  
  85. -PackageKit*
  86. #-NetworkManager*
  87. %end
  88.  
  89.  
  90. # Configure kdump
  91. %addon com_redhat_kdump --disable
  92. %end
  93.  
  94.  
  95. # Pre-installation Script
  96. %pre --erroronfail --log=/root/ks-pre.log
  97. %end
  98.  
  99.  
  100. # Post-installation Script
  101. %post --erroronfail --log=/root/ks-post.log
  102.  
  103. # Yandex dns
  104. #echo 'nameserver 77.88.8.8' > /etc/resolv.conf
  105.  
  106. # Import RPM GPG key
  107. releasever=$(rpm -q --qf '%{version}\n' fedora-release)
  108. basearch=$(uname -i)
  109. rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
  110.  
  111. # Test.
  112. #rm -f /var/lib/rpm/__db*
  113.  
  114. # set hostname. (it here because if not autopart will create fedora_fedora)
  115. hostnamectl set-hostname podhvostikom
  116.  
  117. # Configure dnf
  118. dnf config-manager \
  119. --setopt fastestmirror=1 \
  120. --setopt minrate=1000 \
  121. --setopt max_parallel_downloads=10 \
  122. --setopt metadata_timer_sync=0 \
  123. --save
  124.  
  125. # Disabling tmpfs for /tmp.
  126. systemctl mask tmp.mount
  127.  
  128. # Addition packages.
  129. dnf copr enable -y decathorpe/syncthing
  130. dnf install -y syncthing
  131.  
  132. # Fix selinux contexts
  133. #/usr/sbin/fixfiles -R -a restore
  134. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement