免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2037 | 回复: 9
打印 上一主题 下一主题

[OpenBSD] 安装 OpenBSD 3.9 release [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-13 16:49 |只看该作者 |倒序浏览
安装OpenBSD

OpenBSD 3.9 Release 于 2006年5月1日放出,OpenBSD 一般每6个月发布一个新的版本。OpenBSD一向以自由·性能·安全(Free,Functional&Secure)而著称!

要安装openbsd,首先得去下载它的安装介质(这里以iso为例子介绍):

iso下载可以到google上搜索以下就可以找到。下载完iso再刻录成CD,然后放入光驱安装:

设置从光驱启动,显示如下画面:



输入:i  <enter> 进入全新安装方式:



选择终端类型:直接<enter>接受默认的[vt220]



选择键盘映射:一般可以按L键 列出所有映射,在这里一般选择:us (美国)


输入: yes 继续安装,


直接回车,


这里问你是不是要把整个硬盘给OpenBSD,这里输入yes 把整个硬盘分配给OpenBSD用.
接着进入lable editor ,


输入: p m 查看一下现有的分区情况,以了解硬盘的一些情况.


输入: d * 删除现有的所有的分区, p g 显示一下,删除了所有的分区,只有一个 C: 接下来就可以分区了:


依次 把硬盘分成: /  swap   /tmp  /var  /usr  /home  分完后输入: p m 显示如下:



输入: q 退出 lable editor , 会问是否要写入硬盘, 回车 选择 默认的 [Y ] ,接下来,输入: done  开始写入硬盘:



设置: hostname ,输入: openbsd ; 配置网络: 如下:


配置完网络参数后,设置 root 密码, 接着,设置安装源: 这里直接回车,选择默认的 [cd] ,为从光盘安装, 一路回车选默认方式,



输入: all 安装全部:



然后,回车,开始安装.等安装完了, 输入: done  开始后继配置:

系统启动时开启的服务: sshd ntpd

是否运行X

是否更改默认console

一路回车,选择默认值.





安装完成,reboot 重启!

未完待续......

[ 本帖最后由 ganzy 于 2006-5-13 21:22 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-05-13 17:07 |只看该作者
你还可以通过PXE网络启动安装

[ 本帖最后由 MichaelBibby 于 2006-5-13 17:09 编辑 ]

01_nic_pxe.png (26.45 KB, 下载次数: 73)

01_nic_pxe.png

02_load_kernel.jpeg (59.6 KB, 下载次数: 67)

02_load_kernel.jpeg

03_booting.png (35 KB, 下载次数: 68)

03_booting.png

04_boot_done.png (33.03 KB, 下载次数: 64)

04_boot_done.png

论坛徽章:
0
3 [报告]
发表于 2006-05-13 18:13 |只看该作者
你还可以通过PXE网络启动安装

请问PXE是什么东西?

[ 本帖最后由 jervis0211 于 2006-5-13 18:16 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-05-13 18:30 |只看该作者
Short for Pre-Boot Execution Environment. Pronounced pixie, PXE is one of the components of Intel's WfM specification. It allows a workstation to boot from a server on a network prior to booting the operating system on the local hard drive. A PXE-enabled workstation connects its NIC to the LAN via a jumper, which keeps the workstation connected to the network even when the power is off. Because a network administrator does not have to physically visit the specific workstation and manually boot it, operating systems and other software, such as diagnostic programs, can be loaded onto the device from a server over the network.

PXE is a mandatory element of the WfM specification. To be considered compliant, the PXE must be supported by the computer's BIOS and its NIC.

论坛徽章:
0
5 [报告]
发表于 2006-05-13 21:28 |只看该作者
原帖由 MichaelBibby 于 2006-5-13 17:07 发表
你还可以通过PXE网络启动安装


pxe 以前做无盘网时常用,不过是通过pxe芯片实现的,
利用VMware做,还没有试过,以后有空再试试看!

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
6 [报告]
发表于 2006-05-13 21:33 |只看该作者
PXE是个好东东啊!俺在管理机房的时候就靠它来帮俺解决重复劳动

论坛徽章:
0
7 [报告]
发表于 2006-05-13 22:02 |只看该作者
How does PXE booting work?
First, it is wise to understand how OpenBSD boots on i386 and amd64 platforms. Upon starting the boot process, the PXE-capable NIC broadcasts a DHCP request over the network. The DHCP server will assign the adapter an IP address, and gives it the name of a file to be retrieved from a tftp(1) server and executed. This file then conducts the rest of the boot process. For OpenBSD, the file is pxeboot, which takes the place of the standard boot(8) file. pxeboot(8) is then able to load and execute a kernel (such as bsd or bsd.rd) from the same tftp(1) server.
How do I do it?
The first and obvious step is you must have a PXE-boot capable computer or network adapter. Some documentation will indicate all modern NICs and computers are PXE capable, but this is clearly not true -- many low cost systems do not include PXE ROMs or use an older network boot protocol. You also need a properly configured DHCP and TFTP server.
Assuming an OpenBSD machine is the source of the boot files (this is NOT required), your DHCP server dhcpd.conf file will need to have the following line:

    filename "pxeboot";

to have the DHCP server offer that file to the booting workstation. For example:
    shared-network LOCAL-NET {
            option  domain-name "example.com";
            option  domain-name-servers 192.168.1.3, 192.168.1.5;

            subnet 192.168.1.0 netmask 255.255.255.0 {
                    option routers 192.168.1.1;
                    filename "pxeboot";
                    range 192.168.1.32 192.168.1.127;
                    default-lease-time 86400;
                    max-lease-time 90000;
            }
    }

You will also have to activate the tftpd(8) daemon. This is typically done through inetd(8). The standard OpenBSD install has a sample line in inetd.conf which will do nicely for you:

    #tftp  dgram   udp  wait  root  /usr/libexec/tftpd   tftpd -s /tftpboot

which simply needs to have the '#' character removed and send inetd(8) a -HUP signal to get it to reload /etc/inetd.conf. tftpd(8) serves files from a particular directory, in the case of this line, that directory is /tftpboot, which we will use for this example. Obviously, this directory needs to be created and populated. Typically, you will have only a few files here for PXE booting:
pxeboot, the PXE boot loader (serving the same function as boot on a disk-based system).
bsd.rd, the install kernel or bsd, a customized kernel.
/etc/boot.conf, a boot configuration file.
Note that /etc/boot.conf is only needed if the kernel you wish to boot from is not named bsd, or other pxeboot defaults are not as you need them (for example, you wish to use a serial console). You can test your tftpd(8) server using a tftp(1) client, making sure you can fetch the needed files.
When your DHCP and TFTP servers are running, you are ready to try it. You will have to activate the PXE boot on your system or network card; consult your system documentation. Once you have it set, you should see something similar to the following:

    Intel UNDI, PXE-2.0 (build 067)
    Copyright (C) 1997,1998 Intel Corporation

    For Realtek RTL 8139(X) PCI Fast Ethernet Controller v1.00 (990420)

    DHCP MAC ADDR: 00 E0 C5 C8 CF E1
    CLIENT IP: 192.168.1.76  MASK: 255.255.255.0  DHCP IP: 192.168.1.252
    GATEWAY IP: 192.168.1.1
    probing: pc0 com0 com1 apm pxe![2.1] mem[540k 28m a20=on]
    disk: hd0*
    net: mac 00:e0:c5:c8:cf:e1, ip 192.168.1.76, server 192.168.1.252
    >> OpenBSD/i386 PXEBOOT 1.00
    boot>

At this point, you have the standard OpenBSD boot prompt. If you simply type "bsd.rd" here, you will then fetch the file bsd.rd from the TFTP server.
    >> OpenBSD/i386 PXEBOOT 1.00
    boot> bsd.rd
    booting tftp:bsd.rd: 4375152+733120 [58+122112+105468]=0x516d04
    entry point at 0x100120

    Copyright (c) 1982, 1986, 1989, 1991, 1993
            The Regents of the University of California.  All rights reserved.

    Copyright (c) 1995-2006 OpenBSD.  All rights reserved.  http://www.OpenBSD.org

    OpenBSD 3.9 (RAMDISK_CD) #1025: Thu Mar  2 02:43:29 MST 2006
      ...

The bsd.rd install kernel will now boot.

Can I boot other kinds of kernels using PXE other than bsd.rd?
Yes, although with the tools currently in OpenBSD, PXE booting is primarily intended for installing the OS.

[ 本帖最后由 ganzy 于 2006-5-13 22:31 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2006-05-13 22:07 |只看该作者
原来精华里有:http://bbs.chinaunix.net/viewthr ... &extra=page%3D1

Openbsd3.7的pxe安装
Server为linux
Client的NIC要支持pxe启动
1修改dhcpd.conf
vi   /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
allow booting ;
allow bootp ;
option broadcast-address 192.168.1.255;
option domain-name-servers 192.168.1.1;
option domain-name "simerson.net";
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.32 192.168.1.99;
server-name "pxe-gw";
server-identifier 192.168.1.1;
next-server 192.168.1.1;
default-lease-time -1;
filename "pxeboot";
}

2
mkdir /mnt/cdrom
mkdir /usr/local/apache/htdocs/openbsd
mount -o loop /opt/openbsd3.7/OpenBSD-3.7-install.iso /mnt/cdrom
cp  /mnt/cdrom/3.7/i386/pxeboot  /tftpboot/
cp  /mnt/cdrom/3.7/i386/bsd.rd   /tftpboot/
cp -R  /mnt/cdrom/3.7/*   /usr/local/apache/htdocs/openbsd/

ls   /tftpboot/
pxeboot   bsd.rd
   
3
cat /etc/xinetd.d/tftp
service tftp
{
        disable = yes
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s  /tftpboot
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

4.选用http安装,后面的就简单了,自己装个apache

5启动
service dhcpd  restart
service xinetd  restart
/usr/local/apache/bin/apachectl start

参考http://www.openbsd.org/faq/faq6.html#PXE

[ 本帖最后由 ganzy 于 2006-5-13 22:09 编辑 ]

论坛徽章:
0
9 [报告]
发表于 2006-05-13 22:20 |只看该作者
原帖由 ganzy 于 2006-5-13 22:07 发表
原来精华里有:http://bbs.chinaunix.net/viewthr ... &extra=page%3D1

Openbsd3.7的pxe安装
Server为linux

俺今天刚搞定,测试也成功了。不过,俺的SERVER是OpenBSD。
比起linux做server来,显得更简单。

帖子coming soon...

论坛徽章:
0
10 [报告]
发表于 2006-05-13 22:38 |只看该作者
原帖由 MichaelBibby 于 2006-5-13 22:20 发表

俺今天刚搞定,测试也成功了。不过,俺的SERVER是OpenBSD。
比起linux做server来,显得更简单。

帖子coming soon...


哈哈,,,恭喜!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP