标题: How to re-install Centos yourself remotely [打印本页] 作者: ㄒiger 时间: 2012-2-27 21:30 标题: How to re-install Centos yourself remotely 本帖最后由 ㄒiger 于 2012-2-27 21:30 编辑
大牛们 告诉下。这个必须服务器支持啥可以正常运行。。
sentris的机器。我正在重装..好像可以 ~~~~.. VPS的不知道行不行。。。
(, 下载次数: 0)
上传
点击文件名下载附件
Assuming you currently have a Centos 5 64-bit that was installed by us (if you have or want 32-bit, set/use 32-bit accordingly).
Below will reinstall to Centos 5.6 64-bit, change it accordingly if you want other versions of centos.
1. SSH to your server and login as root
2. Type below:
mkdir /centos_install
cd /centos_install
wget http://vault.centos.org/5.6/os/x86_64/images/pxeboot/initrd.img
wget http://vault.centos.org/5.6/os/x86_64/images/pxeboot/vmlinuz
cp vmlinuz /boot/vmlinuz.cent.pxe
cp initrd.img /boot/initrd.img.cent.pxe3. Add to/Edit the grub menu.lst entry to load the pxe kernel (note: if you were already using grub you do not need to type again the first 2 lines)nano -w /etc/grub.conf
in that file paste this in BETWEEN "hiddenmenu" and "title CentOS..." (IMPORTANT):
YOURPSW with the VNC password you want setup
YOURIP with the ip of the box…
GATEWAYIP with the gateway assigned to your box
Hint: you can see the gateway ip by issuing
route -n | grep UG
once you have done this you need to count the number of times “title” appears in the file, press ctrl +x, and save the file
4. Reboot the server by typing
reboot
5. Assuming above is done correctly, you can then use vncviewer (download from realvnc.com) and connect to YOURIPHERE:1
And password is whatever you set above.