1.
chkconfig --level 35 iptables off
chkconfig --level 35 ip6tables off
service iptables stop
chkconfig --level 35 postfix off
2.selinux 禁用: vi /etc/selinux/config SELINUX=disabled
3.配置yum源为本地光盘:
[root@rhel63 yum.repos.d]# vi local.repo
[local]
name=local
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
4.安装常用软件
#yum install openssh-clients
[root@rhel63 /]# yum install ftp telnet make imake gcc compat-libstdc++-33 gcc-c++ libstdc++ libXp kernel kernel-devel kernel-headers rsh ksh lsof
[root@rhel63 /]# yum install iptraf.x86_64 unzip.x86_64 libaio.x86_64 eject sysfsutils dmidecode pciutils dstat lsscsi
5.安装xwindows
[root@rhel63 /]# yum groupinstall "X Window System"
[root@rhel63 /]# yum groupinstall Desktop (可以不安装桌面)
[root@rhel63 /]# yum install xorg-x11-apps (包含xclock)
配置ntp server
*/10 * * * * /usr/sbin/ntpdate 10.0.0.1
修改ssh
禁用DNS 选项:
echo "UseDNS no" >> /etc/ssh/sshd_config
service sshd restart
添加允许指定用户登录:
echo "AllowUsers user1" >> /etc/ssh/sshd_config
service sshd restart
8.上传设备扫描工具脚本:
rescan-scsi-bus.sh
修改历史记录查看选项
echo "export HISTTIMEFORMAT='%F %T'" >> /etc/profile
大家有哪些特殊的设置可以补充,谢谢!