160 likes | 351 Views
Network Configuration. NAT Mode , disable DHCP server. vi /etc/sysconfig/network-scripts/ifcfg-eth0 : DEVICE=eth0 BOOTPROTO=none HWADDR=00:0c:29:9c:cf:31 ONBOOT=yes DHCP_HOSTNAME=PHIL DNS1=192.168.128.2 NM_CONTROLLED=no TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=no
E N D
vi /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 BOOTPROTO=none HWADDR=00:0c:29:9c:cf:31 ONBOOT=yes DHCP_HOSTNAME=PHIL DNS1=192.168.128.2 NM_CONTROLLED=no TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=no IPADDR=192.168.128.128 NETMASK=255.255.255.0 GETWAY=192.168.128.2 vi /etc/sysconfig/network: NETWORKING=yes HOSTNAME=PHIL vi /etc/resolv.conf: nameserver 192.168.128.2 then restart eth0 by /etc/init.d/network restart ifconfig eth0 192.168.128.128 boardcast 192.168.128.255 netmask 255.255.255.0 up rout add default 192.168.128.2 echo “nameserver 192.168.128.2” >> /etc/resolv.conf
YUM Source Server • yum config file: • /etc/yum.repos.d/fedora*.repo • yum makecache fedora: http://ftp.sjtu.edu.cn/fedora/linux/releases/9/Everything/i386/os/ fedora-update: http://ftp.sjtu.edu.cn/fedora/linux/updates/9/i386/ fedora-update-newkey: http://ftp.sjtu.edu.cn/fedora/linux/updates/9/i386.newkey/
install fetch only feature: • yum install yum-downloadonly • yum install --downloadonly --downloaddir=/root gcc gcc-c++ kernel-devel make • yum --nogpgcheck localinstall binutils-2.18.50-0.6-2.i386.rpm gcc-4.3.0-8.i386.rpm kernel-headers-2.6.25-14.fc9.i386.rpm glibc-headers-2.8-3.i386.rpm gcc-4.3.0-8.i386.rpm glibc-devel-2.8.3.i386.rpm libgomp-4.3.0-8.i386.rpm kernel-devel-2.6.25-14.fc9.i686.rpm kernel-devel-2.6.25-14.fc9.i686.rpm libstdc++-devel-4.3.0-8.i386.rpm make-3.81-12.fc9.i386.rpm
yum install --downloadonly --downloaddir=/root/packages/libs-devel libX11-devel ncurses-devel gtk+-devel gtk2-devel gvim kernel-devel libjpeg-devel e2fsprogs-devel
copy VMwareTools-8.1.3-203739.tar.gz to home directory, then compile and install it via ROOT account. $tar xzf VmwareTools-8.1.3-203739.tar.gz $cd vmware-tools-distrib $./vmware-install.pl
select one folder shared between Windows and Fedora, then you should find this folder in Fedora /mnt/hgfs/VM
generate ISO image • mkisofs -J -T -R -V QiuShi -o packages.iso /root/Packages