当前位置: 首页 > news >正文

NetBSD notes[1]

文章目录

  • the introduce to NetBSD
  • references

the introduce to NetBSD

  1. NetBSD is a Unix-like Open Source operating system, which can run in many hardware platforms , and is advantageous to production and research.
  2. > boot hd0a:netbsd is used for booting NetBSD from the hard disk.
  3. you should configure the /etc/rc.conf file and refer to /etc/defaults/rc.conf when the message shown in the screen was /etc/rc.conf is not configured. Multiuser boot aborted
  4. the man command can display a manual page.
  5. the root user will be used to login firstly NetBSD after installing the OS,it is strongly recommend that to set a password for root through /usr/bin/passwd for taking into accout the safety rules .
  6. # useradd -m can create a new user.
  7. NetBSD supports Shadow passwords by default,which store encrypted password in the file /etc/master.passwd just only for root reading and accessing that file by other users is not permited, the file /etc/passwd will be written with simply “*” to ensure the system file is complete.
# echo rtclocaltime=YES >> /etc/rc.conf
# service rtclocaltime restart
  1. the /etc/defaults/rc.conf file,which NetBSD recommands it as a common configuration, has no effect because that the /etc/rc.conf file actually decides to what will be executed when the system boots,so you can copy some configurations from /etc/defaults/rc.conf to /etc/rc.conf.
    10.the /etc/resolv.conf file used to define the names and IP addresses of DNS nameserver,its context can be as follows.
nameserver 8.8.8.8

in addtion to DNS, you may make some configurations written into the /etc/hosts file which serves as a local DNS (Domain Name System) resolver to set the names of local hosts as following form.

 IP-address  hostname  host

For example:

192.168.1.7 hello.your.domain hello

there are more examples as follows.

127.0.0.1       localhost
192.168.1.10    myserver.local
  1. the /etc directory contains the following files for starting system.
/etc/rc/etc/rc.conf/etc/rc.d/*/etc/rc.local/etc/rc.shutdown/etc/rc.subr/etc/defaults/*/etc/rc.conf.d/*

the kernel will initialize all devices while starting system.when devices has been initialized,the system get started on running these script files in the /etc/rc directory in turn.
the /etc/rc.d is crucial because that it sorts those scripts which will be run in that order .

references

  1. https://www.netbsd.org/docs/guide/en/
http://www.dtcms.com/a/315156.html

相关文章:

  • Redis 常用数据结构以及单线程模型
  • 力扣热题100------21.合并两个有序链表
  • Redis分布式锁简单实现
  • 安卓的NDK、ABI、JNI到底是指啥?区别与联系是?
  • Prometheus-3--Prometheus是怎么抓取Java应用,Redis中间件,服务器环境的指标的?
  • Ollama入门实战
  • ES集群规划与调优
  • Matlab(1)
  • 蓝桥杯----AT24C02
  • 【Git】怎么将https://coding.net的仓库迁移至https://cnb.cool/
  • 拉格朗日松弛算法求解VRP(Vehicle Routing Problem)车辆路径问题和简单示例
  • Linux的进程管理与监控和任务工具crontab的使用
  • 臭氧、颗粒物和雾霾天气过程的大气污染物计算 CAMx模型
  • 用思维框架拆解知识,开启高效学习之旅
  • 【基础完全搜索】USACO Bronze 2019 January - 猜动物Guess the Animal
  • RabbitMQ--介绍
  • 498. 对角线遍历
  • JUCE VST AI 开源
  • 2025最好的Dify入门到精通教程(上)
  • 微服务的编程测评系统10-竞赛删除发布-用户管理-登录注册
  • 县级融媒体中心备份与恢复策略(精简版3-2-1架构)
  • 【网络安全】不安全的反序列化漏洞
  • P1550 [USACO08OCT] Watering Hole G
  • 【达梦MPP(带主备)集群搭建】
  • python包管理器uv踩坑
  • Golang中的`io.Copy()`使用场景
  • Java 的 APT(Annotation Processing Tool)机制详解
  • 【MyBatis-Plus笔记】MyBatis-Plus详解
  • JuiceFS on Windows: 首个 Beta 版的探索与优化之路
  • 【多智能体cooragent】CoorAgent 系统中 5 个核心系统组件分析