Network:
/// vmware ubuntu
voide@fit:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.8.2
voide@fit:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0c:29:9e:a6:dd
inet addr:192.168.8.144 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9e:a6dd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:494 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35192 (35.1 KB) TX bytes:4583 (4.5 KB)
Interrupt:18 Base address:0x2000
/// fedora
ref:http://ostatic.com/question/setting-static-ip-address-on-fedora
vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.8.255
IPADDR=192.168.8.7
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
HWADDR=00:0C:29:39:6D:F7
[root@localhost network-scripts]# cat /etc/resolv.conf
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.8.2
如上操作后还是有问题,i可能是我机子上有两个网卡,之前又在虚拟机下ubuntu redhat设置双网卡。
(在我机子整着,不知咋的就可以了,仅借略参考)
Edit-> Virtual Network Settings 弹出 Virtual Network Editor:Nat Nat下拉列表选VMnet3,
Edit其IP。我的机子是设成(192.168.8.2)
VM-> Setting 弹出 Virtual Machine Settings: Ethernet: Custom: VMnet3[Bridged]
VMnet3 对应我上公网的网卡。
vmtools
ref: http://www.netemu.cn/bbs/thread-2431-1-1.html
rpm -ivh VMwareTools-1.0.3-44356.i386.rpm
#vmware-config-tools.pl
The directory of kernel headers (version 2.6.18-53.1.14.el5) does not match
your running kernel (version 2.6.18-53.1.14.el5PAE). Even if the module were
to compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running
kernel?
七搞八搞 不知道怎么就搞定了。以后知道确定解决方案再记录。
自动登录:
[voider@localhost ~]$ cat /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=yourusername
永久关闭错误提示喇叭:
# vim /etc/modprobe.d/blacklist.conf
加入这样一行使pcspkr不被启动即可:
blacklist pcspkr
tftp:
yum install tftp-server tftp
vim /etc/xinetd.d/tftp
/sbin/chkconfig tftp on
/sbin/chkconfig xinetd on
/sbin/service xinetd start
close selinux:
vim /etc/selinux/config
SELINUX=disabled