Skip to main content

Kickstart Post Installation Steps in ks.cfg

Installing linux with kickstart server, post installation script can be used in order to make specific changes or install additional softwares.This can be done by adding commands after %post section in ks.cfg file.

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  -useshadow  -enablemd5
# System bootloader configuration
bootloader -location=mbr
# Clear the Master Boot Record
# Partition clearing information
clearpart -all -initlabel
# Use graphical install
# Firewall configuration
firewall -disabled
# Run the Setup Agent on first boot
firstboot -disable
# System keyboard
keyboard trq
# System language
lang en_US
# Installation logging level
logging -level=info
# Use network installation
url -url=ftp://<kickstart-server-ip>/pub/RH5-64
# Network information
network -bootproto=static -device=eth0 -gateway=<gateway-ip> -ip=<host-server-ip> -nameserver=<dns-server-ip> -netmask=<netmask> -onboot=on -hostname <hostname>
# Reboot after installation
#Root password
rootpw -iscrypted cwooefjw93>>1$£#gfhlffghk//54sd4
# SELinux configuration
selinux -disabled
# System timezone
timezone -isUtc Europe/Istanbul
# Install OS instead of upgrade
# X Window System configuration information
xconfig  -defaultdesktop=GNOME –depth=8 -resolution=1024×768

sed -i 's/id:5:initdefault:/id:3:initdefault:/' /etc/inittab
chkconfig sendmail off
chkconfig cups off
cd /root
wget –mirror -nH –cut-dirs=1 ftp:// <kickstart-server-ip>/pub/jboss-installation
chmod 755 /root/jboss-installation/
cat >> /etc/profile <<EOF
alias dp='cd /opt/jboss/jboss/server/default/deploy'
alias serverxml='vi /home/jboss//server/default/deploy/jboss-web.deployer/server.xml'
alias jlog='tail -f /opt/jboss/jboss/server/default/log/server.log'


Popular posts from this blog

Find and replace with sed command in Linux

Find and replace feature is always handy. It can turn into a torture when it comes to change or delete a simple constant string in a text file. There is a handy tool in linux for doing these kind of tihngs. Actually sed is not a text editor but it is used outside of the text file to make changes.

Sending Jboss Server Logs to Logstash Using Filebeat with Multiline Support

In addition to sending system logs to logstash, it is possible to add a prospector section to the filebeat.yml for jboss server logs. Sometimes jboss server.log has single events made up from several lines of messages. In such cases Filebeat should be configured for a multiline prospector.
Filebeat takes lines do not start with a date pattern (look at pattern in the multiline section "^[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}" and negate section is set to true) and combines them with the previous line that starts with a date pattern.

server.log file excerpt where DatePattern: yyyy-MM-dd-HH and ConversionPattern: %d %-5p [%c] %m%n
Logstash filter: