欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

ks.cfg

发布时间:2025/5/22 43 豆豆
生活随笔 收集整理的这篇文章主要介绍了 ks.cfg 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

2019独角兽企业重金招聘Python工程师标准>>>

# Kickstart file automatically generated by anaconda. #version=DEVEL install cdrom lang en_US.UTF-8 keyboard us network –onboot yes –device eth0 –bootproto static –ip 192.168.4.2 –netmask 255.255.255.252 –gateway 192.168.4.1 –noipv6 –nameserver 8.8.8.8 –hostname radius rootpw  –iscrypted $6$jwRQViuRZy9G0wTo$juh9nHbis30bmRyqS1BV7UsWYwN70KdsDjwZj8f.2J8y/5Vft/VA8Idvcn91AD8ZedwYCOFXkou..V7oiYt6H0 firewall –enabled  –port=80:tcp –port=1812:udp –port=1813:udp –service=ssh authconfig –enableshadow –passalgo=sha512 selinux –disabled timezone Asia/Shanghai bootloader –location=mbr# The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work clearpart –all –initlabel part /boot –fstype=ext3 –size=200 part pv.008002 –size=100 –grow volgroup groupname–pesize=32768 pv.008002 logvol / –fstype=ext3 –name=root –vgname=groupname–size=15360 logvol /home –fstype=ext3 –name=home –vgname=groupname–size=15360 logvol swap –name=swap –vgname=groupname–size=4096 logvol /ora –fstype=ext3 –name=ora –vgname=groupname–size=1024 –grow reboot%packages @base @console-internet @core @debugging @directory-client @hardware-monitoring @java-platform @large-systems @network-file-system-client @performance @perl-runtime @server-platform @server-policy @system-admin-tools pax oddjob sgpio certmonger pam_krb5 krb5-workstation perl-DBD-SQLite lrzsz -autofs -nfs-utils -ypbind -samba-client -java-1.6.0-openjdk -readahead%post mkdir -p /mnt/source mount -o loop /dev/cdrom /mnt/source tar zxvf /mnt/source/Packages/myself.tar.gz &>/dev/null umount /mnt/source #init system%post chmod a+x /etc/init_myself.sh cat <<EOF>>/etc/rc.local /etc/init_myself.sh EOF #set the release name%postcat <<EOF>/etc/redhat-release ISO Linux 10g (Final) EOF#close ipv6 cat <<EOF>>/etc/modprobe.d/dist.conf alias net-pf-10 off alias ipv6 off options ipv6 disables=1 EOFcat <<EOF>>/etc/sysconfig/network NETWORKING_IPV6=off EOF#update hosts add hostname:radius cat <<EOF>/etc/hosts 127.0.0.1       radius localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1             radius localhost localhost.localdomain localhost6 localhost6.localdomain6 EOF#setting i18n cat <<EOF>/etc/sysconfig/i18n LANG=”en_US” EOF#update postfix inet_protocols all–> ipv4 sed -i ‘s/inet_protocols = all/inet_protocols = ipv4/g’ /etc/postfix/main.cf #add quick echo “alias st=’service tomcat restart’”>>/root/.bashrc echo “alias c=’clear’”>>/root/.bashrc #update grub.confsed -i ‘s/rhgb//g’ /boot/grub/grub.conf sed -i ‘s/quiet//g’ /boot/grub/grub.conf sed -i ‘s/CentOS/ISO Linux 10g/g’ /boot/grub/grub.conf%post chkconfig kdump off chkconfig atd off chkconfig cups off chkconfig netfs off chkconfig postfix off chkconfig netfs off chkconfig ip6tables off chkconfig restorecond off chkconfig ntpd on eject






转载于:https://my.oschina.net/wmsjhappy/blog/273671

总结

以上是生活随笔为你收集整理的ks.cfg的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。