Jump to content

slackman

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About slackman

  • Rank
    Noob
  1. i build custom linux cd with kickstart and create directory in this below CentOS 5.2 DVD dr-xr-xr-x 2 root root 40960 Feb 12 07:40 CentOS dr-xr-xr-x 4 root root 4096 Feb 11 06:05 images dr-xr-xr-x 2 root root 4096 Feb 11 06:05 isolinux -r-xr-xr-x 1 root root 1394 Feb 12 07:43 ks.cfg dr-xr-xr-x 2 root root 4096 Feb 11 07:06 NOTES drwxr-xr-x 2 root root 4096 Feb 12 07:40 Pack --> include my program drwxr-xr-x 2 root root 4096 Feb 12 07:42 repodata -r--r--r-- 1 root root 438 Feb 11 06:06 TRANS.TBL i'm build repodata and isolinux it's work perfectly:razz:.. and i create ks.cfg in this below. lang en_US langsupport --default en_US mouse generic3ps/2 keyboard us install timezone --utc Asia/Bangkok rootpw --iscrypted JBxtfQL27O.XE network --bootproto static --ip 192.168.1.2 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --device eth0 network --bootproto static --ip 172.168.1.1 --netmask 255.255.255.0 --device eth1 cdrom selinux --disabled firewall --disabled clearpart --all --initlabel zerombr yes bootloader --location=mbr part /boot --size 75 --fstype ext2 part / --size 1500 --grow --fstype ext3 part swap --size 512 --fstype swap %packages @admin-tools @development-tools @development-libs @system-tools @base @core @dns-server @editors @ftp-server @java @java-development @legacy-network-server @legacy-software-development @legacy-software-support @mysql @network-server @server-cfg @text-internet @web-server dhcp kernel-devel lm_sensors net-snmp-libs net-snmp mrtg iptraf mc php-mysql php-cli php-common php-dba php-devel php-gd php-imap php-ldap php-mbstring php-ncurses php-odbc php-pdo php-snmp php-xml php-soap php-xmlrpc bind-chroot bind-devel bind-libbind-devel bind-libs bind-sdb bind-utils binutils binutils-devel caching-nameserver system-config-bind ypbind rar --> extra rpm it's install working after "createrepo" command %post /bin/mkdir -p /etc/test/install/ /bin/cp /mnt/source/Pack/test.tar /etc/test/install/ kickstart config for %packages and all config server it's work perfectly. !!! but.... %post section it's not working:-( i can't copy test.rar form "Pack" directory it's same cd linux to harddisk but system can be create /etc/test/install and i see "?" in directory only(must be test.rar) i try change %pre,%post --nochroot not working also. ** in test.rar include install.sh shell script file i can run it or not. help me please i try about month it's not work....:-( (i post this question all linux forum on internet. but not answer!!) thank you for advance.
  2. i have CentOS 5.2 DVD and i copy image all DVD to image file (linux.iso) and change ks.cfg in this below # ks.cfg : Created by Instalinux at Tue Nov 18 23:07:32 PST 2008 # COE-Profile used: Custom lang en_US langsupport --default en_US mouse generic3ps/2 keyboard us install timezone --utc Asia/Bangkok rootpw --iscrypted JBxtfQL27O.XE network --bootproto static --ip 192.168.1.2 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --device eth0 network --bootproto static --ip 172.168.1.1 --netmask 255.255.255.0 --device eth1 cdrom selinux --disabled firewall --disabled clearpart --all --initlabel zerombr yes bootloader --location=mbr part /boot --size 75 --fstype ext2 part / --size 1500 --grow --fstype ext3 part swap --size 512 --fstype swap %packages @admin-tools @development-tools @development-libs @system-tools @base @core @dns-server @editors @ftp-server @java @java-development @legacy-network-server @legacy-software-development @legacy-software-support @mysql @network-server @server-cfg @text-internet @web-server kernel-devel lm_sensors net-snmp-libs net-snmp mrtg iptraf mc php-mysql php-cli php-common php-dba php-devel php-gd php-imap php-ldap php-mbstring php-ncurses php-odbc php-pdo php-snmp php-xml php-soap php-xmlrpc bind-chroot bind-devel bind-libbind-devel bind-libs bind-sdb bind-utils binutils binutils-devel caching-nameserver system-config-bind ypbind %post mkdir -p /etc/nax/install/ cp -rf /tmp/cdrom/rar-3.7.0-0.1.beta1.el5.rf.i386.rpm /etc/nax/install/ cp -rf /tmp/cdrom/naxpacketv2008-fc8.tar /etc/nax/install it's all package select install working fine. but post install it's not working 1. i copy rar-3.7.0-0.1.beta1.el5.rf.i386.rpm to "CentOS" directory (** CentOS directory include all rpms) 2. i copy naxpacketv2008-fc8.tar to "CentOS" directory also. ** it's my application after installed i looking in /etc/nax/install directory rar-3.7.0-0.1.beta1.el5.rf.i386.rpm,naxpacketv2008-fc8.tar not found how to working. ext. 1. i want to use shell script in post install section also. like this(install-core.sh in naxpacketv2008-fc8.tar) #!/bin/sh #### linux core ##### cd /etc/nax/install cd src cp -rf linux-2.6.23.1.tar.bz2 /usr/src/ cp -rf iptables-1.3.8.tar.bz2 /usr/src/ cd /usr/src bunzip2 linux-2.6.23.1.tar.bz2 bunzip2 iptables-1.3.8.tar.bz2 tar -xvf linux-2.6.23.1.tar tar -xvf iptables-1.3.8.tar cd linux-2.6.23.1 make bzImage make modules make modules_install make install cd .. cd iptables-1.3.8 chmod +x extensions/.layer7-test make KERNEL_DIR=/usr/src/linux-2.6.23.1 make install KERNEL_DIR=/usr/src/linux-2.6.23.1 cd /etc/nax/install/src cd l7 make install ##### iptables ######################### cd /sbin mv iptables iptables.old mv iptables-save iptables-save.old mv iptables-restore iptables-restore.old ln -s /usr/local/sbin/iptables iptables ln -s /usr/local/sbin/iptables-save iptables-save ln -s /usr/local/sbin/iptables-restore iptables-restore ########################################## #### ipp2p ######### cd /etc/nax/install/sysconfig/ipp2p-0.99.14 make clean make cp -rf libipt_ipp2p.so /usr/local/lib/iptables/ insmod ipt_ipp2p.ko depmod -a cp ipt_ipp2p.ko -rf /lib/modules/2.6.23.1/kernel/net/ipv4/netfilter/ ##### service ### rpm --force -ivh *.rpm cp -rf modsecurity_crs_10_config.conf /etc/httpd/modsecurity.d/ very thank for any anwser.
×
×
  • Create New...