home | login | register | DMCA | contacts | help | donate |      

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Э Ю Я


my bookshelf | genres | recommend | rating of books | rating of authors | reviews | new | форум | collections | читалки | авторам | add



10.4.3.3. ...performing customization after installation?

The Kickstart file can also include a script that is run after installation, using the %post option. Here is an example:

% post


# Add aliases to /etc/bashrc:

echo "alias l='ls -l'" >>/etc/bashrc

echo "alias cls='clear'" >>/etc/bashrc


# Change the login welcome message for text consoles

echo "Welcome to Fedora Core!" >/etc/issue


# Place a copy of acceptable-use-policy.txt

# in /etc/skel so that it will be copied to each

# new user's home diretory.

cd /etc/skel

wget http://192.168.1.2/text/acceptable-use-policy.txt


# Configure httpd to start automatically on boot

/sbin/chkconfig httpd on

Post-installation scripts cannot reliably use hostnames; any IP addresses must be specified numerically.


10.4.3.2. ...creating a Kickstart file that dynamically adjusts according to properties of the installation target? | Fedora Linux | 10.4.3.4. ...installing a system with the same configuration as another, previously installed system?