Guest User

Untitled

a guest
Aug 11th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. repo --name=fedora-updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f24&arch=x86_64
  10. #repo --name=updates-testing --mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=updates-testing-f24&arch=x86_64
  11.  
  12. # Storage and Partitioning
  13. autopart --type=lvm
  14.  
  15. # Bootloader
  16. bootloader --location=mbr --driveorder=sda --boot-drive=sda
  17.  
  18. # Remove All Existing Partitions
  19. clearpart --all --initlabel
  20.  
  21. # Ignore Specified Disks
  22. ignoredisk --only-use=sda
  23.  
  24. # Reinitialize Partition Tables
  25. zerombr
  26.  
  27. # Configure Firewall
  28. firewall --enable --ssh
  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 --lock
  53.  
  54. # Configure SELinux
  55. selinux --enforcing
  56.  
  57. # Add an Authorized SSH Key
  58. sshkey --username=netforhack ""
  59. sshkey --username=quko8 ""
  60. sshkey --username=defman ""
  61.  
  62.  
  63. # Create User Account
  64. user --groups=wheel --name=quko8 --password=qukop --plaintext --shell=/usr/bin/zsh
  65. user --groups=wheel --name=defman --password=defmanp --plaintext --shell=/usr/bin/zsh
  66. user --groups=wheel --name=netforhack --password=netforhackp --plaintext
  67.  
  68. # Configure Error Logging During Installation
  69. logging --level=debug
  70.  
  71. # Perform Installation in Text Mode
  72. #text
  73. cmdline
  74.  
  75. # Enable or Disable Initial Setup
  76. firstboot --disable
  77.  
  78. # Reboot After Installation
  79. reboot --eject
  80.  
  81. # Package Selection
  82. %packages
  83. zsh
  84. nano
  85. ps_mem
  86. tmux
  87. nmap
  88. masscan
  89. git
  90. #tracepath
  91. #netstat
  92. #docker
  93.  
  94. -PackageKit*
  95. -NetworkManager*
  96. %end
  97.  
  98.  
  99. # Configure kdump
  100. %addon com_redhat_kdump --disable
  101. %end
  102.  
  103.  
  104. # Pre-installation Script
  105. %pre --erroronfail --log=/root/ks-pre.log
  106. %end
  107.  
  108.  
  109. # Post-installation Script
  110. %post --erroronfail --log=/root/ks-post.log
  111.  
  112. # Yandex dns
  113. #echo 'nameserver 77.88.8.8' > /etc/resolv.conf
  114.  
  115. # Import RPM GPG key
  116. releasever=$(rpm -q --qf '%{version}\n' fedora-release)
  117. basearch=$(uname -i)
  118. rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
  119.  
  120. # set hostname. (it here because if not autopart will create fedora_fedora)
  121. hostnamectl set-hostname podhvostikom
  122.  
  123. # Configure dnf
  124. dnf config-manager \
  125.   --setopt fastestmirror=1 \
  126.   --setopt minrate=1000 \
  127.   --setopt max_parallel_downloads=10 \
  128.   --setopt metadata_timer_sync=0 \
  129.   --save
  130.  
  131. # Disabling tmpfs for /tmp.
  132. systemctl mask tmp.mount
  133.  
  134. # Addition packages.
  135. dnf copr enable -y decathorpe/syncthing
  136. dnf install -y syncthing
  137. %end
Add Comment
Please, Sign In to add comment