The Depenguinator - Upgrading linux to FreeBS…
2009-05-13 11:25:31来源:未知 阅读 ()
The Depenguinator - Upgrading linux to FreeBSD
[url=hhttp://www.daemonology.net/blog/2008-01-29-depenguinator-2.0.html]http://www.daemonology.net/blog/2008-01-29-depenguinator-2.0.html[/url]
Without further ado, here are the steps I needed to upgrade an
Ubuntu 7.10 system to FreeBSD 7.0-RC1:
Install some bits which the depenguinator needs which aren't included
in the default Ubuntu install.
apt-get install curl
apt-get install bsdtar
apt-get install libc6-dev
apt-get install zlib1g-dev
Download the depenguinator and verify its SHA256 hash.
curl http://www.daemonology.net/depenguinator/depenguin-2.0.tar.gz > depenguin-2.0.tar.gz
sha256sum depenguin-2.0.tar.gz
The computed SHA256 hash should be
aa5d98dd3998545600f5af1d406196832ef8bea59cb022bc3a5efb303ac57cf7.
Extract the depenguination code.
tar -xzf depenguin-2.0.tar.gz
cd depenguin-2.0
Create the depenguinator configuration file.
mv depenguinator.conf.dist depenguinator.conf
nano depenguinator.conf
This configuration file contains basic networking configuration
parameters, so that the system can get back online after it boots
into FreeBSD.
Download the FreeBSD disc1 ISO image and verify its SHA256 hash (change
"7.0" and "7.0-RC1" as appropriate.)
curl ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RC1-i386-disc1.iso > disc1.iso
sha256sum disc1.iso
Compare the SHA256 hash against the hash contained in the announcement
signed by the FreeBSD release engineer -- we've never found any signs
of Evil People deliberately tampering with release ISO images, but a
few years ago there was a mirror which was corrupting ISO images due
to a faulty network switch.
Create the disk image. Change "7.0-RC1" to the appropriate release
name, and replace ~/.ssh/authorized_keys by the path to the
SSH public keys you want to be authorized to login as root.
sh -e makeimage.sh disc1.iso 7.0-RC1 ~/.ssh/authorized_keys
Turn off swapping.
swapoff -a
Write the disk image to the partition which used to contain the swap
space (in my case, /dev/sda2).
dd if=disk.img of=/dev/sda2
Add FreeBSD to GRUB's list of operating systems, and set it as the
default system to boot into. In my case, this meant adding
title FreeBSD
root (hd0,1)
makeactive
chainloader +1
to /boot/grub/menu.lst and changing the default line
to default 3.
Reboot into FreeBSD.
shutdown -r now
After waiting for the system to reboot, SSH back in; FreeBSD is now
running in a memory disk; so now you can slice, partition, and create
file systems on the hard drive(s) and install FreeBSD however you wish.
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash