Preparation |
Configuration |
rpm -qa >allrpminit.log |
yum install tcsh slocate logrotate man vim-enhanced which telnet wget mc sudo system-config-firewall-tui bind-utils traceroute |
adduser alreg passwd alreg => enter password |
visudo alreg ALL=(ALL) ALL |
vim /etc/passwd ...:/bin/tcsh |
yum install openssh-clients mlocate |
vi /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 |
scp alreg@XXXXX.com:/home/alreg/.tcshrc . |
vim /etc/sysconfig/network HOSTNAME=<full qualified hostname> |
vim /etc/selinux/config SELINUX=permissive |
vim /etc/selinux/config SELINUX=disabled |
Centos 6 special steps |
ifconfig -a |
vi /etc/udev/rules.d/70-persistent-net.rules SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0C:29:11:22:33", ATTR{type}==”1", KERNEL==”eth*”, NAME=”eth0" |
vi /etc/sysconfig/network-scripts/ifcfg-eth0 |
Cleanup |
chkconfig --level 2345 apmd off chkconfig --level 2345 avahi-daemon off chkconfig --level 2345 bluetooth off chkconfig --level 2345 hidd off chkconfig --level 2345 cups off chkconfig --level 2345 mdmonitor off chkconfig --level 2345 pcscd off chkconfig --level 2345 sendmail off |
chkconfig --level 2345 portmap off chkconfig --level 2345 rpcgssd off chkconfig --level 2345 rpcidmapd off |
chkconfig --list |grep "3:on" |awk '{print $1}' |sort |
yum remove apmd* samba* cups* nfs* yum remove gnome* bluez* avahi* |
chkconfig --list apmd |
service <servicename> start |
service <servicename> stop |
yum update kernel* |
shutdown -r now |
yum update |
updatedb |
vmkfstools.pl -i /vmfs/volumes/datastore1/centos_64/centos_64.vmdk /vmfs/volumes/datastore1/bu/centos_64_orig/centos_64.vmdk -d "" -a lsiLogic |
cd /mnt mkdir cdrom mount /dev/cdrom /mnt/cdrom cd /mnt/cdrom cp VMwareTools*.rpm /tmp umount /mnt/cdrom |
cd /tmp rpm -Uvh VMwareTools*.rpm |
vmware-config-tools.pl |
cd /mnt mkdir cdrom mount /dev/cdrom /mnt/cdrom cd /mount/cdrom cp VMwareTools*.gz /tmp umount /mnt/cdrom |
cd /tmp tar xvfz VMwareTools*.gz cd vmware-tools-distrib/ ./vmware-install.pl |
yum install yum-priorities |
vim /etc/yum/pluginconf.d/priorities.conf [main] enabled=1 |
cd /etc/yum.repos.d vim CentOS-Base.repo |
mkdir /goinfre cd /goinfre wget http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm |
wget http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm |
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt |
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm |
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm |
vim /etc/yum.repos.d/rpmforge.repo priority=20 |
yum check-update |
install fluxbox and vncserver |
vim /etc/yum.repos.d/rpmforge.repo includepkgs= fluxbox* artwiz* imlib2* iftop* libid3tag* python-xdg* clam* rrdtool perl-rrdtool |
yum install vnc-server xorg-x11-twm xterm |
yum install fluxbox |
vncserver -depth 16 -geometry 1280x1024 :9 |
vncserver -kill :9 |
vim /home/alreg/.vnc/xstartup #twm & fluxbox & |
system-config-securitylevel-tui |
vim /etc/sysconfig/network-scripts/ifcfg-eth0 BROADCAST=216.XXX.XXX.191 NETWORK=216.XXX.XXX.160 DEVICE=eth0 ONBOOT=yes HWADDR=00:0c:29:11:22:33 IPADDR=172.30.4.8 NETMASK=255.255.255.0 GATEWAY=172.30.4.1 Type=Ethernet |
service network restart |
vim /etc/resolv.conf nameserver <<<nameserverip>>> |
yum install bind-chroot bind-utils yum install caching-nameserver service named start chkconfig --levels 2345 named on |
vim /etc/resolv.conf nameserver 127.0.0.1 |