FreeBSD简明安装指南(英文)

FreeBSD 11.0 安装 Git 的完整实践指南 Git 是分布式版本控制的核心工具,其在类 Unix 系统中的安装不仅涉及包管理命令执行,更深层依赖操作系统 ABI 稳定性、SSL/TLS 库兼容性与签名验证机制。FreeBSD 作为强调纯净性与构建可控性的类 Unix 系统,其 pkg 包管理系统与 ports 源码体系的双轨设计,使 Git 安装需兼顾 OpenSSL 版本匹配、CA 证书更新、GPG 签名校验及网络代理穿透等工程细节。尤其在已停止维护的 FreeBSD 11.0 这一关键遗留平台中,git 二进制的 ABI 锁定、libc 兼容性与 阅读详情

(原文: http://www.madpenguin.org/cms/?m=show&id=1853) 

FreeBSD Install Guide  
            by Narayan Newton

A step-by-step guide to installing FreeBSD 5. It assumes moderate experience with linux and leaves you with a fully updated FreeBSD system.

FreeBSD Installation

A. 5.x vs 4.x
The first thing to understand about FreeBSD is that there are two lines of development. The -STABLE branch is marked with a 4.x version number and the most recent version is 4.10. It is well tested and very solid, but does not include the most recent technology. The -CURRENT branch, marked with a 5.x version, is the “unstable” branch. However, it is nicely stable at the moment and is coming along quite well. Most users should go with 5.x and these instructions are only valid for that tree.

NOTE: DragonFlyBSD ( www.dragonflybsd.org ) is a continuation of the 4.x line. It uses lock-less (no mutexes) SMP support and a Light Weight Kernel Threading system. It has a lot of promise and is developing at a breakneck pace, but it should still be thought of as “R/D.”

B. Getting Media
I am not going to say much about this. There are links to various ftp mirrors at www.freebsd.org and the directory structure is fairly self-explanatory. There are however several choices for ISO. You should choose the miniinst ISO. It is small and will include everything you need for the base system.

C. Starting Installation
After, the CD boots up you will enter the...ahh.....majestic sysinstall. You can safely ignore most of the options and just choose a standard installation. Most of the install process is pretty easy and anyone who has some experience with linux or unix will be able to handle it without much stress. However, creating partitions and dealing with drives will seem very odd to your standard linux user.

D. Hard Disc Management in FreeBSD
Ok, the first thing to get used to here is that IDE drives are not hda, hdb...etc. They are ad0, ad1 and so forth. SCSI discs are da0, da1...and so on. There is one other thing that is going to freak some people out. You create slices, not partitions, on the disc and then create partitions within those slices. For example, the first partition in the first slice on the first IDE disc would be ad0s1a. Just accept it.

E. Partitioning
Sysinstall will lead you through the partitioning and its fairly easy to understand. The first part will ask you to choose a disc or discs to partition and then will show you a "slice editor." This is where you will create your slice. I advise you to only make one. While multiple slices are easy to deal with, it just adds complication. If this is not your first installation of a BSD type OS, then you can ignore me and why are you reading this again?

After creating your slice, you will be prompted to choose the drive(s) to install an MBR on. The FreeBSD boot loader is nothing to write home about, but it tends towards working. After this step, you can create partitions. There is not much to say here. At the top of the screen it will show your slice(s) and when one of them is selected you can use the controls to create a partition on it. You will need at least a root and swap partition. On the non-swap partitions it is usually a good idea to enable soft-updates.

F. Distribution Sets
This is a simple section, select minimal.

G. Continue Installation
The rest of this is pretty simple. Make sure you install from the CD and not the Internet. The bulk of the install is now done. After it copies files to your disc, it will start the configuration process. This is all pretty self-evident, but there are a couple things you should know.

Network Configuration

Don't be scared by the names, in *BSD devices are named after their drivers. There is also a short description after the name, so you should be able to choose the right one. The rest of the network config is easy, just follow the prompts.

System Console Configuration

You can pretty much ignore this, you may want to look around for your own knowledge and of course you could pick a nice screen saver here, but other then that I would leave it alone for now.

Time Zone

All I have to say here is that if you live in the US, after you choose “America ? North and South” hit the end key. The US is at the bottom of the list and hitting end is the quickest way there.

Linux

Say no, we will do this later and with an updated linux_base.

Mouse

OK, welcome to the wonderful and amazing world of moused. Answer the first question truthfully, and then you can tweak the settings in the “Please configure your mouse” dialog. Whatever you do, be sure to enable the daemon. Also, for most users that is all you will have to do. You can safely ignore the other options.

Package Installation

At this point, the installer will ask you to install binary packages. Say no. These binaries are out of date and not included on our CD.

Of users and roots

This isn't the most thrilling section, add a user when it asks you to and set a root password after that. The only thing I have to say about this process is when the new user dialog comes up leave the “Group:” box unchanged and add “wheel” to the Member groups. You also might want to set your shell to /bin/tcsh. As for setting the root password, if you can't handle that we have bigger problems.

Rebooting

Ok, next it will ask if you would like to visit the general config area. Select no and you will be brought back to the main menu. Exit the install, reboot without the CD in and enjoy the boot messages.

H. The Real Post-Install
At this point, I am going to assume that you are now looking at a login prompt and thinking “my my...FreeBSD boots quite quickly doesn't it.” Well, our task is not done yet...there is a reason we did a minimal install. We are going to do most of it ourselves. First, lets upgrade to -CURRENT. This isn't a practice I would usually recommend, but 5.x is close to being tagged stable and -CURRENT is rather solid at the moment. First, I need to explain how things are done in the BSD world.


Sup?

CVS up; you up; we all CVSUP. Cvsup is a very interesting program that I am not going to explain in detail here. All you really need to know is that it updates source trees. You see, that is the thing. You may be used to /usr/src not doing much. In BSD it has a job, it holds the source for the entire base system. However, we did a minimal install and no source is there. It wouldn't be up2date anyway. So, lets fix that. Login as root and type the following: pkg_add -r cvsup-without-gui

pkg_add is the binary installer for FreeBSD and the -r argument tells it to fetch binaries from the net. It will also fetch any deps that you might need. Switch to another console while this is happening and login as root. Do the following:

cd /etc

cp /usr/share/examples/etc/make.conf /etc/make.conf

cp /usr/share/examples/cvsup/standard-supfile /usr

cp /usr/share/examples/cvsup/ports-supfile /usr

chmod u+w /etc/make.conf /usr/standard-supfile /usr/ports-supfile

What was that? Well here is the rundown. Make.conf is the file that controls the building of programs from source on FreeBSD and the supfiles tell cvsup where to get the source for the base system and the ports system, also where to put said source. They come out of /usr/share/examples without the write bit set and that gets annoying. So we set that. Now switch back to the first console and type rehash. This tells tcsh to check its path for new programs. Now, edit the standard supfile that is in /usr. You can either use ee or vi. I like vi. Scroll down to the line that looks a bit odd. It will be something like:

*default host=CHANGE_THIS.FreeBSD.org

The “CHANGE_THIS” is where you put what cvsup server to use. Choose a number between 1 and 9, like 4, and put cvsup4 where CHANGE_THIS is. So it would end up being:

*default host=cvsup4.FreeBSD.org

Now exit your editor and run cvsup /usr/standard-supfile

If everything goes correctly, you will see a lot of text scrolling on the screen. If it says something about a bad connection, try another number.

Make.conf

Now 'tis the time for all good men (and women) to edit their make.conf . This is not difficult, in fact have a look around the file. It may be long, but it is pretty simple. Now, uncomment the CPU setting and the CFLAGS setting. Set the CPU to your CPU (there will be a list in the comments above the setting) and set the CFLAGS to -O2. (NOTE: If the base system fails to build, downgrade your CFLAGS back to -O).

Build Your World

When CVSUP finishes (it will be awhile...go get some coffee), cd to /usr/src and run make buildworld. That command will do exactly what it sounds like. It builds your world, or base system. While its doing that, lets get you a kernel. First, cd to /usr/src/sys/i386/conf then cp GENERIC to some file of your choosing. Any name you want. However, be aware that this is going to show up in a uname -a. Now, crack open your new file and take a look at what a FreeBSD kernel config is like. There are many things you can do here that will improve performance and subtract in size. However, lets keep it simple. Near the top of the file will be the name GENERIC. Change that to your new name. You can now look through the file and you will find several sections that are just for debugging. These will indeed add size and slow down the kernel a bit, but I would leave them for now. Go to the end of the file and make a new line. Add the following:

device pcm

This will add sound support to the kernel. Be aware that you don't need to do this, you can load binary modules at boot or after boot, but this way is easy and sound is used often. Save the file and exit. Go back to your buildworld console and when its done execute make buildkernel KERNCONF=YOUR_KERNEL_CONFIG_NAME

NOTE: NOT THE PATH OF THE KERNEL CONFIG..it knows to look in /usr/src/sys/i386/conf


Installing Your World

This isn't that difficult. First run make installkernel KERNCONF= your config name. Now here is the interesting part. Run mergemaster -p, this program looks through your etc and updates it to match the new /etc in /usr/src. It will display changed files to you, press q and it will give you options. Something like i (install), m (merge) etc. Pick merge and it will open a nice little screen that shows you one file on the right and one on the left. It will go section by section, showing the areas that have changed. Press r or l to choose which section to keep. Its pretty easy to see which section has new stuff and which does not. After the merge, it will prompt you with options for the newly merged file. One of these will be install and this is the one you want. In the latest current, most of what you will be showed is user and group files. Make sure you do select the sections with the new users and groups. After this is done, it will ask you a couple questions that you can say yes to. Now that your /etc is updated run make installworld then reboot.

NOTE: You usually don't need to run mergemaster. However, 5.2.1 is a pretty old release and -CURRENT has come a long way.


I. Ports

Welcome to running current. The rest is easy. cd back to /usr and edit the ports supfile the same way you did the standard one. Run cvsup on it and wait. After its done, you will have a full ports tree. There is not much left to say. You now have a working system and a fully updated one too. To install software from ports cd to /usr/ports/category/softwarename/ and run make install clean . If you want linux binary support, install the linux_base port. To find where it is cd to /usr/ports and run make search name=linux_base | less . Enable loading the kernel modules for linux binary support by editing /etc/rc.conf. Just add the line linux_enable="YES" to the file and your set. If this is a desktop system, I would recommend installing /usr/ports/x11/xorg and your choice of /usr/ports/x11/gnome2 or kde3. Have fun :).

TIPS: (things to look up)
man kldload

man pkg_add

man pkg_info

man ports

cd /usr/ports/sysutils/portupgrade && cat pkg-descr | less

www.freebsd.org/handbook

man tuning
 

行政数据分析大屏实战:用Tableau从Excel到看板的完整搭建流程(含数据连接与字段计算避坑) 本文详细介绍了如何利用Tableau从Excel数据源搭建行政数据分析大屏的完整流程,涵盖数据准备、连接技巧、计算字段优化、看板设计及动态交互部署。通过五阶工作流,帮助用户高效处理多源异构数据,实现业务洞察与可视化呈现,提升行政数据分析效率。 阅读详情

相关推荐

AUTOSAR R20-11标准下载!

这是公众号的第2篇推文,粉丝数49 Document Search Classic Platform Adaptive Platform Foundation 文档截图 以为会在明天的发布会之后才上线,没想到官网现在就悄悄放出来了。 中国由于网络问题,下载速度比较慢或者会中断。 “阅读原文”提供多种下载方式,可以在线浏览,可以集中下载也可单个文档下载。 如有增减我也会及时在公众号里通知大家,不过我觉得不会变动了。 整理不宜,好东西要分...

Adaptive_AUTOSAR的博客 1895

Developing native extensions for Adobe AIR

原文:http://www.adobe.com/devnet/air/articles/developing-native-extensions-air.html 以下为摘译 Note: Adobe recommes using the next version of Flash Builder for developing native extensions for Adobe AIR.Si...

小白编程 785

华为昇腾 Atlas 200I DK A2 开发板编程接口学习入门:系统安装和开发步骤、注意事项与典型案例实战

华为昇腾开发板编程接口指南:从入门到进阶 本文系统介绍了华为昇腾开发板的编程接口体系,涵盖MindXSDK和AscendCL两大核心框架。MindXSDK提供高层封装接口,适合快速搭建视觉应用;AscendCL则是底层接口,需手动管理设备内存。文章详细讲解了: 开发环境搭建步骤,包括系统配置、依赖安装 MindXSDK组件化编程流程(图像分类实例) AscendCL底层开发方法(内存管理、模型推理) 常见问题解决方案和调试技巧 两个典型应用实例(摄像头目标检测和图像分类) 针对小白开发者,推荐从MindXS

bother3000的博客 2444

安装 FreeBSD-13.0-RELEASE-amd64

安装 FreeBSD-13.0-RELEASE-amd64 全网最全图文解析!

燃吹 U 客帮 7404

DGX Spark部署Isaac Sim:Arm架构容器化与机器人仿真避坑指南

机器人仿真平台依赖物理引擎与GPU加速,在Arm架构设备上的部署往往面临兼容性挑战。NVIDIA DGX Spark基于Grace Blackwell统一内存架构,CPU与GPU共享128GB内存,为本地运行大模型与Isaac Sim仿真提供了硬件基础。Isaac Sim作为NVIDIA Omniverse之上的机器人仿真平台,支持合成数据生成、物理仿真与强化学习策略训练,而容器化方案可将复杂依赖封装隔离,arm64镜像选型则成为部署成败的分水岭。本文从系统环境确认、NVIDIA Container Too

weixin_31220401的博客 217

从“盲控”到“预见”:聊聊永磁同步电机负载观测器(PMSM Load Observer)如何让控制更丝滑

本文深入探讨了永磁同步电机负载观测器(PMSM Load Observer)如何通过前馈补偿和转动惯量辨识技术实现智能抗扰控制。从传统‘盲控’到预见性调节,负载观测器显著减少转速波动和能耗,提升系统响应速度。文章详细解析了观测器算法架构、工程调参技巧及前沿发展趋势,为电机控制领域提供实用解决方案。

weixin_33737774的博客 411

扑克21点作弊算法【综合文 FreeXploiT收集整理】仅供研究,不要非法使用

21点规则与基本玩法(中文)玩家需将赌注置于下注圈中央。然后,庄家给每个玩家发两张牌,牌面朝上;给自己发两张牌,一张牌面朝上,一张牌面朝下。K、Q、J 和 10 牌都算作 10 点。 A 牌既可算作 1 点也可算作 11 点,由玩家自己决定。其余所有 2 至 9 牌均按其原面值计算。 如果玩家拿到的前两张牌是一张 A 和一张 10,就拥有黑杰克 (Blackjack);此时,如果庄家没有黑杰克,玩

FreeXploiT 1万+

SAPGUI 与 ADT 的时代分野:在多云架构下,谁还能代表现代 SAP 开发

摘要(149字) SAP开发工具正经历代际更迭:SAPGUI基于专有协议(NI/DIAG)的厚客户端架构难以适配多云环境,而ADT(ABAP Development Tools)通过HTTP(S)协议和Eclipse生态成为ABAP Cloud/RAP开发的唯一入口。关键差异体现在:ADT支持CDS、行为定义等云原生对象建模,天然对齐BTP的零信任网络;集成ATC、Git等DevOps工具链;而SAPGUI无法创建RAP核心对象,在跨平台、自动化方面存在硬限制。官方文档明确将ADT作为Clean Core战

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 397

线性代数 —— 高斯消元法

【概述】 高斯消元法主要用于求解线性方程组,也可以求矩阵的秩、矩阵的逆等,是一个重要的数学方法。 其时间复杂度主要与方程组个数、方程组未知数个数有关,一般来说,时间复杂度为 O(n^3) 【线性方程组】 线性方程组:有多个未知数,且每个未知数的次数均为一次,这样多个未知数所组成的方程组。 其形式为: 记为矩阵形式,有: 【高斯消元法】 高斯消元法的基本思想是:通过一系列的加减...

Alex_McAvoy的博客 6万+

【GlobalMapper精品教程】001:GlobalMapper23+24+25 Pro-x64中文汉化版安装教程(附软件包下载)

Global Mapper 23+V24+V25中文汉化版安装教程及免费下载地址,是一款非常专业的地图绘制软件,功能非常的丰富,内置距离和面积计算,包括光栅混合、对比度调节、海拔高度查询、视线计算以及一些高级功能,通过地表数据观察分水岭、对3Dpoint数据转换为三角多边形和网格化等设置。本文讲解GlobalMapper23.1 Pro-x64安装过程。

智慧空间实验室 3万+

探索gtwr of mgtwr in python

代码】探索gtwr of GWmodel in python。

m0_46268055的博客 3389

FreeBSD安装详细讲解-一步一步教你安装FreeBSD

freeBSD的下载地址:http://mirrors.163.com/FreeBSD/ISO-IMAGES-amd64/8.3/FreeBSD-8.3-RELEASE-amd64-dvd1.iso用迅雷下载即可, 虚拟机的硬盘设定为20G,内存512MB,分区情况如下: / 2048M swap 1024M /usr 17401M 下面详解freeBSD的安装...

weixin_34272308的博客 2631

DeepFashion 服装识别:基于 YOLOv10 的深度学习实现与 UI 界面开发

随着深度学习的发展,目标检测算法在服装识别任务中表现出色,特别是 YOLO(You Only Look Once)系列模型。服装识别(Fashion Recognition)是计算机视觉领域的重要任务,广泛应用于。已提供,可用于服装分类、款式识别、虚拟试衣等应用。训练服装识别模型,并开发。

YOLO 804

FreeBSD安装调试

01.光碟开机 02.安装方式 a. Express Begin a quick installation(for impatient) 03.设partition a. 通常将全部的硬碟分割给同一系统使用(A=Use Entire Disk) 04.分割label a. C(Create)-->500M-->FS (A file system)--> / (挂入点为/) b. C(Create)

FreeXploiT 3801

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

用U盘安装FreeBSD

今天

redpopet 6485

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

FreeBSD 安裝vim

<br /> FreeBSD 安裝vim FreeBSD 安裝vim<br /><br /> 【 FreeBSD vim 】<br /><br /> 1. cd /usr/ports/editors/vim<br /><br /> 2. make -DWITHOUT_X11 install clean # 安裝文字版的 vim<br /><br /> 3. cd /root<br /><br /> 4. vi .vimrc # 新增喜好設定檔<br /><br /> 5. 注意!以下參數的中文

我爱互联网 3056

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

硬盘安装FreeBSD8.0+GNOME桌面

说明:【#代表超级用户shell;>代表普通用户的tcsh,黑括号表示说明】前提:XP已安装,能上网。一、下载: 1、下载8.0-RC3-i386-bootonly.iso和8.0-RC3-i386-dvd1.iso两个文件;2、下载中文字体文泉驿等宽正黑,比微软雅黑还好用的免费的字体,效果见附图;3、下载本文档,保存成英文名字的文本;4、下载grub4dos-0.4.

gnsxsb的专栏 4327

试用QEMU,安装个FreeBSD 5.3

   相信大家都听说过QEMU吧.QEMU是和bochs一样有名的虚拟机.只不过性能以及功能相对来说会比bochs好一点.比如支持iso安装以及网置的dhcp网关以及兼容bochs的img映象,为什么不运行QEMU呢?呵呵,当然也有缺点了,只是有时候运行得不稳定,而且切换鼠标的快捷键设计得不合理,用的是Ctrl+Shift这两个键. 先将就吧.     嗯.考虑到大家都是用windows的.我

妖嘎冻未条 3441

vmware上安装FreeBSD7.0

这两天在看TCPIP详解(第一卷),里面老提到伯克利的BSD,以前也知道TCP/IP最初的实现包括现在很多OS的TCP/IP实现都源于BSD, 所以想装个BSD看看,学习协议的时候也方便嘛当然还是装在虚拟机vmware上,个人认为还是很方便的,我这原来装的有2000,xp,redhat9,fc7,2000server,DOS7.1,呵呵,再装一个也不嫌多,做一些网络实验还是很方便地...

cradmin的专栏 3803

FreeBSD 安装步骤

FreeBSD 安装步骤01.光碟开机 02.安装方式 a. Express Begin a quick installation(for impatient) 03.设partition a. 通常将全部的硬碟分割给同一系统使用(A=Use Entire Disk) 04.分割label a. C(Create)-->500M-->FS (A file system)--

清风牧羊 1714

FreeBSD 5.2.1R Web Server架设实例过程

willy 本文献给和我一样初次接触FreeBSD的朋友们。 我这个人比较倔,但是一直以来自信心还可以。由于想装一个web server,多方打听知道freebsd在这方面还比较强,于是下定决心准备搞一个自己的freebsd web server出来。 以前都是玩ms的windows系列,开始搞freebsd,当然有些摸不着门,下面就是我关于freebsd的一些初步经验,希望能对后来的新新

淋雨的感觉's bolog 1355

FreeBSD升级及pkgng

Ports和Package长期以来 FreeBSD 的应用安装主要都是依赖源码编译的 ports 系统,二进制的 package 系统当然也有,只是弱爆了,至少依赖问题需要人工处理( ports 是自动处理依赖的)。这跟 apt 之类的二进制包管理系统相比,差距太大。所以后来 FreeBSD 也搞了一个跟 apt 之类类似的东西,叫做下一代的包管理系统:pkgng 。不过我这人比较保守(其实是懒)

猛禽的编程艺术 9036

freebsd mysql 安装教程_freeBSD安装教程

上一篇给大家介绍了win7 的硬盘安装方法,怎么样,简单吧,今天来点麻烦的,在主流系统安装中安装unix 可以说是比较麻烦的,主要是一堆英文界面,弄的英文本来就不怎么样的我好不晕乎。(书到用时方嫌少,早知道就好好学习英语了)好了,直接进入正题:在安装之前你需要准备一张刻录好的freeBSD安装盘,没有的到这里 http://www.freebsd.org/ 去下载个,大概有一个多G,不是很大,下载...

weixin_29706315的博客 292

FreeBSD Slackare使用手册

FreeBSD http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/index.html 中文手册 Slackare http://www.slackbook.org/html/book.html 英文手册

技术资料库 1422

FREEBSD12.2 GNOME3美化 手动安装DASH TO DOCK

目录操作录像1. 安装必要软件2. 通过网页安装dash to dock3. 手动安装dash-to-dock插件4. dash-to-dock设置5. 完工 操作录像 FREEBSD12.2 GNOME3美化 手动安装DASH TO DOCK 1. 安装必要软件 通过extensions.gnome.org安装gnome插件,需要使用firefox浏览器及chrome-gnome-sh

crazy_rays的专栏 1856

FreeBSD 8.0安装详解

FreeBSD更新的真快,转眼8.0都出来了。不过安装过程和7.2区别不大。         先在FreeBSD官方网站(ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/)上下载安装镜像,我一般都下载DVD的ISO,也有人爱好下最小的安装包,然后通过FTP或HTTP方式从网上下载各个程序包。         这里就以DVD的ISO为例,下

树蛙PHPER 1486
上一篇: LINUX 服务器配置大全
下一篇: FreeBSD 4.9中文工作站安装过程简介
极湖
博客等级 码龄25年 1粉丝 12原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值