关闭网络管理工具NetworkManager
# /etc/init.d/NetworkManager stop
# chkconfig NetworkManger off
关闭防火墙
# /etc/init.d/iptables stop
# chkconfig iptables off
关闭SELinux
# sestatus
# setenforce 0
# vim /etc/selinux/config
SELINUX=permissive
配置网络
方法1
# setup
方法2
# mii-tool 查看连接的网口是ethx
# while true;do mii-tool -l eth0;sleep 1;done 查看网线接入的是否eth0
# ethtool eth0 查看eth0是否连接
Link detected: yes
# vim /etc/sysconfig/network-scripts/ifcfg-eth0 配置eth0,关掉不用的网卡
DEVICE=eth0
BOOTPROTO=none|static|dhcp 引导时不使用协议 | 静态分配 | DHCP协议
IPADDR=192.168.1.11
NETMASK=255.255.255.0
ONBOOT=yes
# vim /etc/sysconfig/network
GATEWAY=172.16.80.1
# /etc/init.d/network restart
配置ssh
# vim /etc/ssh/sshd_config
PermitRootLogin yes
# /etc/init.d/sshd restart
# chkconfig sshd on
配置VNC
# rpm -q vnc-server
# vim /etc/sysconfig/vncservers
VNCSERVERS="1:root 2:root 3:root"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
# vncserver :1
# vim /root/.vnc/xstartup
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
#twm &
#startkde &
gnome-session &
# service vncserver restart
杀VNC进程
# vncserver -kill :1
参考分区方案
/boot 200M
Lvm:
Lvm_root: / 30G
Lvm_swap: swap 16G
Lvm_home: /home 剩余
阅读(1096) | 评论(0) | 转发(0) |