“Openbsd”的版本间的差异
(创建页面,内容为“ https://www.openbsdhandbook.com/installation/”) |
|||
(未显示同一用户的62个中间版本) | |||
第1行: | 第1行: | ||
+ | =install= | ||
+ | ==iso download== | ||
+ | 我的神舟本本 U盘启动是F7 | ||
+ | https://www.openbsd.org/ftp.html | ||
+ | 安装注意 今天硬盘是用了他的openbsd 分好多个区的 | ||
+ | |||
+ | 参考可如下 对了 https不行 要用http | ||
+ | |||
+ | 试用一下 这个 | ||
+ | https://mirrors.aliyun.com/openbsd/7.0/amd64/ | ||
+ | |||
+ | |||
+ | Location of sets? (disk http or ‘done’) [http] | ||
+ | |||
+ | HTTP proxy URL? (e.g. ‘http://proxy:8080’, or ‘none’) [none] | ||
+ | |||
+ | HTTP Server? (hostname, list#, ‘done’ or ‘?') mirrors.aliyun.com #[cdn.openbsd.org] #这个可能要用国内的 mirrors 不然要好几个小时 | ||
+ | |||
+ | Server directory? openbsd/7.0/amd64/ # [pub/OpenBSD/6.X/amd64] | ||
+ | |||
+ | |||
+ | Location of sets? (disk ) [done] 表示完成 下一步 时区 | ||
+ | Asia/Shanghai | ||
+ | |||
+ | Select sets by entering a set name, a file na | ||
+ | |||
+ | https://mirrors.aliyun.com/openbsd/7.0/amd64/ | ||
+ | https://mirrors.aliyun.com/openbsd/6.9/amd64/ | ||
+ | 此时最新的是6.9 so | ||
+ | axel https://mirrors.aliyun.com/openbsd/6.9/amd64/install69.iso | ||
+ | |||
+ | <pre> | ||
+ | 如果安装到硬盘的 是 install69.img 看官方文档可知 | ||
+ | |||
+ | install70.img | ||
+ | [amd64] [arm64] [i386] [octeon] [powerpc64] [riscv64] [sparc64] | ||
+ | A disk image that can be written to a USB flash drive or similar device. Includes the file sets. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 注意看 File Sets 下面的安装指导 大不了全选吧 哈哈 | ||
+ | game的可以不要 | ||
+ | bsd The kernel required | ||
+ | bsd.mp The multi-processor kernel (only on some platforms) | ||
+ | bsd.rd The ramdisk kernel | ||
+ | baseXX.tgz The base system required | ||
+ | compXX.tgz The compiler collection, headers and libraries | ||
+ | manXX.tgz Manual pages | ||
+ | gameXX.tgz Text-based games | ||
+ | xbaseXX.tgz Base libraries and utilities for X11 (requires xshareXX.tgz) | ||
+ | xfontXX.tgz Fonts used by X11 | ||
+ | xservXX.tgz X11’s X servers | ||
+ | xshareXX.tgz X11’s man pages, locale settings and includes | ||
+ | |||
+ | </pre> | ||
https://www.openbsdhandbook.com/installation/ | https://www.openbsdhandbook.com/installation/ | ||
+ | |||
+ | 桌面可以安装awesome 等等 | ||
+ | |||
+ | https://openports.se/ | ||
+ | |||
+ | ==安装上要改进的地方 Nov 20 2021== | ||
+ | <pre> | ||
+ | 自动分区 | ||
+ | 这个是自动分区的 最好是 和linux一样的分分区会会好点 | ||
+ | evanbsd$ df -h | ||
+ | Filesystem Size Used Avail Capacity Mounted on | ||
+ | /dev/sd0a 986M 106M 830M 11% / | ||
+ | /dev/sd0k 52.5G 22.0K 49.9G 0% /home | ||
+ | /dev/sd0d 3.9G 12.0K 3.7G 0% /tmp | ||
+ | /dev/sd0f 5.8G 1.1G 4.4G 20% /usr | ||
+ | /dev/sd0g 986M 295M 642M 31% /usr/X11R6 | ||
+ | /dev/sd0h 15.7G 218K 14.9G 0% /usr/local | ||
+ | /dev/sd0j 5.8G 2.0K 5.5G 0% /usr/obj | ||
+ | /dev/sd0i 1.9G 2.0K 1.8G 0% /usr/src | ||
+ | /dev/sd0e 12.8G 7.2M 12.2G 0% /var | ||
+ | evanbsd$ | ||
+ | |||
+ | |||
+ | ksh: 要改回bash ? | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | =desktop 初始化= | ||
+ | == 注意 trouble== | ||
+ | firefox es 打开B站会卡, firefox 92 不会 | ||
+ | why at openbsd is 2 core , but at kali is 4 core | ||
+ | |||
+ | == 换源== | ||
+ | <pre> | ||
+ | vi /root/.profile | ||
+ | |||
+ | export PKG_PATH=https://mirrors.tuna.tsinghua.edu.cn/pub/OpenBSD/7.0/packages/amd64/ | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | |||
+ | <pre> | ||
+ | |||
+ | OpenBSD | ||
+ | # pkg_add git | ||
+ | |||
+ | |||
+ | |||
+ | WireGuard 是一个 VPN 内核实现,代码行数少(相比之下 OpenVPN 有超过 10 万行代码),优先考虑性能,配置简单,试图在做到配置简单的同时提供高性能。WireGuard 基于 UDP,数据包在一端加密之后封装在 UDP 包内发送到远程端点,然后解密。并且其支持更广泛的加密算法与协议。 | ||
+ | |||
+ | WireGuard 已被多家大公司使用,并被整合到工具、发行版,移动手机和数据中心,此前也已经进入了 Linux 5.6 内核主线。此次进入 OpenBSD,又拿下一个阵营,也意味着未来 OpenBSD 将能原生支持 WireGuard VPN。 | ||
+ | </pre> | ||
+ | https://git-scm.com/download/linux | ||
+ | |||
+ | == 中文和输入法== | ||
+ | <pre> | ||
+ | 还没中文输入法 和中文字体firefox支持 有空再完善 Nov 21 2021 | ||
+ | |||
+ | #中文显示 | ||
+ | pkg_add zh-wqy-zenhei-ttf | ||
+ | pkg_info -Q zh-wqy | ||
+ | |||
+ | 这两个还没搞定 Nov 27 2021 am , 但是pm时搞定了 | ||
+ | 先配置中文环境 | ||
+ | 再搞中文输入法 | ||
+ | 其实只要中文输入法也行 | ||
+ | |||
+ | |||
+ | pkg_add slim-themes slim | ||
+ | |||
+ | pkg_add firefox-esr-i18n-zh-CN zh-wqy-bitmapfont scim-fcitx fcitx-table fcitx-configtool fcitx | ||
+ | |||
+ | |||
+ | vi ~/.xinitrc | ||
+ | |||
+ | # Chinese support | ||
+ | |||
+ | # input support | ||
+ | export GTK_IM_MODULE="fcitx" | ||
+ | export QT_IM_MODULE="fcitx" | ||
+ | export XMODIFIERS="@im=fcitx" | ||
+ | /usr/local/bin/fcitx -d | ||
+ | |||
+ | |||
+ | |||
+ | # character display & encoder in terminal and other app | ||
+ | |||
+ | export LC_CTYPE=zh_CN.UTF-8 | ||
+ | export LC_MESSAGES=zh_CN.UTF-8 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | pkg_add chinese/fcitx chinese/fcitx-configtool chinese/fcitx-table-extra chinese/fcitx-ui-light fcitx-qt5 | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | [https://sohcahtoa.org.uk/openbsd.html Running OpenBSD 7.0 on your laptop is really hard (not)] | ||
+ | |||
+ | ==sudo == | ||
+ | <pre> | ||
+ | |||
+ | pkg_add sudo | ||
+ | |||
+ | visudo | ||
+ | |||
+ | evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL | ||
+ | #echo 'evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL' >/usr/local/etc/sudoers.d/evan | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | == other== | ||
+ | <pre> | ||
+ | terminator | ||
+ | |||
+ | rofi -show run | ||
+ | 看一下哪个firefox 正常的 | ||
+ | |||
+ | firefox 95 未登录 也是有点卡 为什么以前kali好像不会呀 | ||
+ | |||
+ | firefox esr | ||
+ | |||
+ | 只要会自启动就行了 | ||
+ | |||
+ | sudo | ||
+ | WIN+ R 明天搞一下rofi | ||
+ | </pre> | ||
+ | |||
+ | =openbsd7 install xfce= | ||
+ | 感觉openbsd7 这字体好好看 | ||
+ | |||
+ | == Connect to the Internet install firmware packages and update the base system== | ||
+ | <pre> | ||
+ | |||
+ | For licencing reasons some firmware packages cannot be included on the OpenBSD install media. Run the fw_update command as root to install any firmware that is available... | ||
+ | 出于许可原因,OpenBSD安装媒体上无法包含某些固件包。以root运行fw_update命令以安装可用的任何固件... | ||
+ | |||
+ | |||
+ | fw_update | ||
+ | |||
+ | syspatch | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | == Connect to WiFi== | ||
+ | <pre> | ||
+ | To find out the name of the WiFi driver, type the ifconfig command as root... | ||
+ | |||
+ | foo# ifconfig | grep flag | ||
+ | lo0: flags=8049 mtu 32768 | ||
+ | em0: flags=8802 mtu 1500 | ||
+ | ath0: flags=808843 mtu 1500 | ||
+ | enc0: flags=0<> | ||
+ | pflog0: flags=141 mtu 33136 | ||
+ | The output from ifconfig tells me that my Thinkpad X61s has an Atheros wifi card installed and will use the ath driver which is distributed with the base system. To connect to an authenticated WiFi, you can create a hostname.if file... | ||
+ | |||
+ | foo# echo "join myhomewifi wpakey pass_phrase" >> /etc/hostname.ath0 | ||
+ | foo# echo "dhcp" >> /etc/hostname.ath0 | ||
+ | ...and then restart the network... | ||
+ | |||
+ | foo# sh /etc/netstart | ||
+ | ...and use ping to check that your connection is working... | ||
+ | |||
+ | foo# ping openbsd.org | ||
+ | PING openbsd.org (129.128.5.194): 56 data bytes | ||
+ | 64 bytes from 129.128.5.194: icmp_seq= | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | ==Install third party packages == | ||
+ | <pre> | ||
+ | The pkg_add command is used to install packages. OpenBSD has a global mirror system that is accessed through a content delivery network and the address of the package repository is written to /etc/installurl during installation. The commands below will install nano an easy to use command line editor. | ||
+ | |||
+ | foo# pkg_add emacs vim | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | == Install xfce4, Firefox and a pdf viewer== | ||
+ | <pre> | ||
+ | foo# pkg_add xfce xfce-extras firefox xfce4-power-manager upower # evince | ||
+ | </pre> | ||
+ | |||
+ | ==Enable power management and allow xfce to shutdown and reboot == | ||
+ | <pre> | ||
+ | Use rcctl to enable and start the apmd daemon (straight from the FAQ page). Suspend to RAM should then work. | ||
+ | |||
+ | foo# rcctl enable apmd | ||
+ | foo# rcctl set apmd flags -A | ||
+ | foo# rcctl start apmd | ||
+ | Next enable and start the messagebus (aka dbus-daemon)... | ||
+ | |||
+ | foo# rcctl enable messagebus | ||
+ | foo# rcctl start messagebus | ||
+ | rcctl actually writes lines into /etc/rc.conf.local and that file can be edited directly from a root command prompt. | ||
+ | |||
+ | Finally when you start an X Window session, the server looks for a file called ~/.xsession in the root of your home drive and runs the commands in that file. Below is the contents of my .xsession file for running Xfce based on the pkg-readme... | ||
+ | |||
+ | foo$ cat ~/.xsession | ||
+ | # See pkg-readme for xfce | ||
+ | # Dbus/message bus enabled in rc.conf.local | ||
+ | # Want to be able to suspend from xfce4 logout menu | ||
+ | /usr/local/bin/startxfce4 --with-ck-launch | ||
+ | |||
+ | |||
+ | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | == 参考别人还没动== | ||
+ | <pre> | ||
+ | 修改 /etc/installurl,使用 https://mirrors4.tuna.tsinghua.edu.cn/OpenBSD。 | ||
+ | |||
+ | pkg_info -Q fcitx | ||
+ | pkg_info -Q chrom | ||
+ | pkg_info -Q firefox | ||
+ | |||
+ | pkg_add fcitx fcitx-gtk3 fcitx-qt4 fcitx-qt5 | ||
+ | pkg_add firefox chromium noto-fonts noto-cjk | ||
+ | |||
+ | pkg_add bash fish # 默认的 ksh 在 xterm 里中文宽度和位置判断有问题 | ||
+ | chsh -s /usr/local/bin/fish # 针对普通用户,需要 logout 再 login 生效 | ||
+ | |||
+ | OpenBSD 使用 Xenodm 显示管理器,跟 XDM 非常像,同样使用 ~/.xsession 和 ~/.Xresources 来定制。 | ||
+ | |||
+ | ## ~/.xsession | ||
+ | |||
+ | export LANG=en_US.UTF-8 | ||
+ | export LC_CTYPE=zh_CN.UTF-8 | ||
+ | export XMODIFIERS=@im=fcitx | ||
+ | export GTK_IM_MODULE=fcitx | ||
+ | export QT_IM_MODULE=fcitx | ||
+ | |||
+ | resources=$HOME/.Xresources | ||
+ | [ -r "$resources" ] && /usr/X11R6/bin/xrdb -load "$resources" | ||
+ | |||
+ | /usr/local/bin/fcitx-autostart | ||
+ | for i in 1 2 3 4 5; do | ||
+ | echo waiting for fcitx... | ||
+ | sleep 1 | ||
+ | /usr/local/bin/fcitx-remote >/dev/null 2>&1 && break | ||
+ | done | ||
+ | |||
+ | /usr/X11R6/bin/xterm & | ||
+ | exec /usr/X11R6/bin/fvwm | ||
+ | |||
+ | ~/.Xresources 内容和 NetBSD 的版本一样。使用 1600x1200 分辨率的方式同 NetBSD。 | ||
+ | |||
+ | |||
+ | </pre> | ||
+ | |||
+ | [https://sohcahtoa.org.uk/openbsd.html Running OpenBSD 7.0 on your laptop is really hard (not)] | ||
+ | |||
+ | [https://dieken.gitlab.io/posts/bsd-as-desktop-system/ 使用 BSD 作为桌面系统] | ||
+ | |||
+ | =常用命令= | ||
+ | shutdown -p now | ||
+ | /etc/rc.d/sshd restart | ||
+ | |||
+ | =The BSD Family= | ||
+ | |||
+ | |||
+ | OS108 is a fast, open and Secure Desktop Operating System built on top of NetBSD. | ||
+ | https://os108.org/ | ||
+ | |||
+ | |||
+ | [https://www.linuxprobe.com/openbsd-changge.html OpenBSD 将会在每次重启后都使用和之前不同的内核] | ||
+ | |||
+ | =reference= | ||
+ | http://www.openbsd.org/faq/index.html 总的官方文档 | ||
+ | |||
+ | https://www.openbsdhandbook.com/installation/ | ||
+ | |||
+ | [http://www.tingtao.org/archives/1582.html 安装OpenBSD 6.4的步骤] | ||
+ | |||
+ | [https://www.bilibili.com/video/BV1Nf4y1X7eJ/?spm_id_from=autoNext OpenBSD桌面安装] | ||
+ | |||
+ | [https://www.bilibili.com/video/BV1A54y1S731/ openbsd安装-命令行操作-virtualbox] | ||
+ | |||
+ | [https://www.bilibili.com/video/BV1jy4y1Y7ar/?spm_id_from=333.788.recommend_more_video.8 Linux 生活第十三期,BSD 小试牛刀] | ||
+ | |||
+ | [https://dieken.gitlab.io/posts/bsd-as-desktop-system/ 使用 BSD 作为桌面系统] | ||
+ | |||
+ | [https://jingyan.baidu.com/article/6d704a13cc23cd68db51cab6.html openbsd安装教程] | ||
+ | |||
+ | [https://www.dokuwiki.org/install:openbsd DokuWiki on OpenBSD] | ||
+ | |||
+ | == Referenct of desktop== | ||
+ | [https://www.gobsd.org/viewtopic.php?t=3496 OpenBSD xfce firefox scim中文桌面安装] | ||
+ | |||
+ | [https://minecraft.fandom.com/zh/wiki/%E6%95%99%E7%A8%8B/OpenBSD%E5%90%AF%E5%8A%A8%E8%84%9A%E6%9C%AC 教程/OpenBSD启动脚本 ] | ||
+ | |||
+ | [https://cloudo3.com/zh/%E9%9B%B2%E8%A8%88%E7%AE%97/openbsd%E4%B8%8A%E7%9A%84doas%E7%AE%80%E4%BB%8B/1387 OpenBSD上的doas简介] | ||
+ | |||
+ | [https://nanxiao.me/openbsd-one-year-experience/ 使用OpenBSD一年的总结] | ||
+ | |||
+ | https://bsdmag.org | ||
+ | |||
+ | |||
+ | [https://dieken.gitlab.io/posts/bsd-as-desktop-system/ 使用 BSD 作为桌面系统] | ||
+ | |||
+ | [http://bbs.chinaunix.net/thread-420115-1-1.html [OpenBSD<nowiki>]</nowiki> OpenBSD中文使用环境] | ||
+ | |||
+ | |||
+ | |||
+ | [[category:freebsd]] | ||
+ | [[category:openbsd]] |
2022年1月7日 (五) 15:12的最新版本
install
iso download
我的神舟本本 U盘启动是F7
https://www.openbsd.org/ftp.html
安装注意 今天硬盘是用了他的openbsd 分好多个区的
参考可如下 对了 https不行 要用http
试用一下 这个 https://mirrors.aliyun.com/openbsd/7.0/amd64/
Location of sets? (disk http or ‘done’) [http]
HTTP proxy URL? (e.g. ‘http://proxy:8080’, or ‘none’) [none]
HTTP Server? (hostname, list#, ‘done’ or ‘?') mirrors.aliyun.com #[cdn.openbsd.org] #这个可能要用国内的 mirrors 不然要好几个小时
Server directory? openbsd/7.0/amd64/ # [pub/OpenBSD/6.X/amd64]
Location of sets? (disk ) [done] 表示完成 下一步 时区
Asia/Shanghai
Select sets by entering a set name, a file na
https://mirrors.aliyun.com/openbsd/7.0/amd64/ https://mirrors.aliyun.com/openbsd/6.9/amd64/ 此时最新的是6.9 so
axel https://mirrors.aliyun.com/openbsd/6.9/amd64/install69.iso
如果安装到硬盘的 是 install69.img 看官方文档可知 install70.img [amd64] [arm64] [i386] [octeon] [powerpc64] [riscv64] [sparc64] A disk image that can be written to a USB flash drive or similar device. Includes the file sets. 注意看 File Sets 下面的安装指导 大不了全选吧 哈哈 game的可以不要 bsd The kernel required bsd.mp The multi-processor kernel (only on some platforms) bsd.rd The ramdisk kernel baseXX.tgz The base system required compXX.tgz The compiler collection, headers and libraries manXX.tgz Manual pages gameXX.tgz Text-based games xbaseXX.tgz Base libraries and utilities for X11 (requires xshareXX.tgz) xfontXX.tgz Fonts used by X11 xservXX.tgz X11’s X servers xshareXX.tgz X11’s man pages, locale settings and includes
https://www.openbsdhandbook.com/installation/
桌面可以安装awesome 等等
安装上要改进的地方 Nov 20 2021
自动分区 这个是自动分区的 最好是 和linux一样的分分区会会好点 evanbsd$ df -h Filesystem Size Used Avail Capacity Mounted on /dev/sd0a 986M 106M 830M 11% / /dev/sd0k 52.5G 22.0K 49.9G 0% /home /dev/sd0d 3.9G 12.0K 3.7G 0% /tmp /dev/sd0f 5.8G 1.1G 4.4G 20% /usr /dev/sd0g 986M 295M 642M 31% /usr/X11R6 /dev/sd0h 15.7G 218K 14.9G 0% /usr/local /dev/sd0j 5.8G 2.0K 5.5G 0% /usr/obj /dev/sd0i 1.9G 2.0K 1.8G 0% /usr/src /dev/sd0e 12.8G 7.2M 12.2G 0% /var evanbsd$ ksh: 要改回bash ?
desktop 初始化
注意 trouble
firefox es 打开B站会卡, firefox 92 不会 why at openbsd is 2 core , but at kali is 4 core
换源
vi /root/.profile export PKG_PATH=https://mirrors.tuna.tsinghua.edu.cn/pub/OpenBSD/7.0/packages/amd64/
OpenBSD # pkg_add git WireGuard 是一个 VPN 内核实现,代码行数少(相比之下 OpenVPN 有超过 10 万行代码),优先考虑性能,配置简单,试图在做到配置简单的同时提供高性能。WireGuard 基于 UDP,数据包在一端加密之后封装在 UDP 包内发送到远程端点,然后解密。并且其支持更广泛的加密算法与协议。 WireGuard 已被多家大公司使用,并被整合到工具、发行版,移动手机和数据中心,此前也已经进入了 Linux 5.6 内核主线。此次进入 OpenBSD,又拿下一个阵营,也意味着未来 OpenBSD 将能原生支持 WireGuard VPN。
https://git-scm.com/download/linux
中文和输入法
还没中文输入法 和中文字体firefox支持 有空再完善 Nov 21 2021 #中文显示 pkg_add zh-wqy-zenhei-ttf pkg_info -Q zh-wqy 这两个还没搞定 Nov 27 2021 am , 但是pm时搞定了 先配置中文环境 再搞中文输入法 其实只要中文输入法也行 pkg_add slim-themes slim pkg_add firefox-esr-i18n-zh-CN zh-wqy-bitmapfont scim-fcitx fcitx-table fcitx-configtool fcitx vi ~/.xinitrc # Chinese support # input support export GTK_IM_MODULE="fcitx" export QT_IM_MODULE="fcitx" export XMODIFIERS="@im=fcitx" /usr/local/bin/fcitx -d # character display & encoder in terminal and other app export LC_CTYPE=zh_CN.UTF-8 export LC_MESSAGES=zh_CN.UTF-8 pkg_add chinese/fcitx chinese/fcitx-configtool chinese/fcitx-table-extra chinese/fcitx-ui-light fcitx-qt5
Running OpenBSD 7.0 on your laptop is really hard (not)
sudo
pkg_add sudo visudo evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL #echo 'evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL' >/usr/local/etc/sudoers.d/evan
other
terminator rofi -show run 看一下哪个firefox 正常的 firefox 95 未登录 也是有点卡 为什么以前kali好像不会呀 firefox esr 只要会自启动就行了 sudo WIN+ R 明天搞一下rofi
openbsd7 install xfce
感觉openbsd7 这字体好好看
Connect to the Internet install firmware packages and update the base system
For licencing reasons some firmware packages cannot be included on the OpenBSD install media. Run the fw_update command as root to install any firmware that is available... 出于许可原因,OpenBSD安装媒体上无法包含某些固件包。以root运行fw_update命令以安装可用的任何固件... fw_update syspatch
Connect to WiFi
To find out the name of the WiFi driver, type the ifconfig command as root... foo# ifconfig | grep flag lo0: flags=8049 mtu 32768 em0: flags=8802 mtu 1500 ath0: flags=808843 mtu 1500 enc0: flags=0<> pflog0: flags=141 mtu 33136 The output from ifconfig tells me that my Thinkpad X61s has an Atheros wifi card installed and will use the ath driver which is distributed with the base system. To connect to an authenticated WiFi, you can create a hostname.if file... foo# echo "join myhomewifi wpakey pass_phrase" >> /etc/hostname.ath0 foo# echo "dhcp" >> /etc/hostname.ath0 ...and then restart the network... foo# sh /etc/netstart ...and use ping to check that your connection is working... foo# ping openbsd.org PING openbsd.org (129.128.5.194): 56 data bytes 64 bytes from 129.128.5.194: icmp_seq=
Install third party packages
The pkg_add command is used to install packages. OpenBSD has a global mirror system that is accessed through a content delivery network and the address of the package repository is written to /etc/installurl during installation. The commands below will install nano an easy to use command line editor. foo# pkg_add emacs vim
Install xfce4, Firefox and a pdf viewer
foo# pkg_add xfce xfce-extras firefox xfce4-power-manager upower # evince
Enable power management and allow xfce to shutdown and reboot
Use rcctl to enable and start the apmd daemon (straight from the FAQ page). Suspend to RAM should then work. foo# rcctl enable apmd foo# rcctl set apmd flags -A foo# rcctl start apmd Next enable and start the messagebus (aka dbus-daemon)... foo# rcctl enable messagebus foo# rcctl start messagebus rcctl actually writes lines into /etc/rc.conf.local and that file can be edited directly from a root command prompt. Finally when you start an X Window session, the server looks for a file called ~/.xsession in the root of your home drive and runs the commands in that file. Below is the contents of my .xsession file for running Xfce based on the pkg-readme... foo$ cat ~/.xsession # See pkg-readme for xfce # Dbus/message bus enabled in rc.conf.local # Want to be able to suspend from xfce4 logout menu /usr/local/bin/startxfce4 --with-ck-launch
参考别人还没动
修改 /etc/installurl,使用 https://mirrors4.tuna.tsinghua.edu.cn/OpenBSD。 pkg_info -Q fcitx pkg_info -Q chrom pkg_info -Q firefox pkg_add fcitx fcitx-gtk3 fcitx-qt4 fcitx-qt5 pkg_add firefox chromium noto-fonts noto-cjk pkg_add bash fish # 默认的 ksh 在 xterm 里中文宽度和位置判断有问题 chsh -s /usr/local/bin/fish # 针对普通用户,需要 logout 再 login 生效 OpenBSD 使用 Xenodm 显示管理器,跟 XDM 非常像,同样使用 ~/.xsession 和 ~/.Xresources 来定制。 ## ~/.xsession export LANG=en_US.UTF-8 export LC_CTYPE=zh_CN.UTF-8 export XMODIFIERS=@im=fcitx export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx resources=$HOME/.Xresources [ -r "$resources" ] && /usr/X11R6/bin/xrdb -load "$resources" /usr/local/bin/fcitx-autostart for i in 1 2 3 4 5; do echo waiting for fcitx... sleep 1 /usr/local/bin/fcitx-remote >/dev/null 2>&1 && break done /usr/X11R6/bin/xterm & exec /usr/X11R6/bin/fvwm ~/.Xresources 内容和 NetBSD 的版本一样。使用 1600x1200 分辨率的方式同 NetBSD。
Running OpenBSD 7.0 on your laptop is really hard (not)
常用命令
shutdown -p now /etc/rc.d/sshd restart
The BSD Family
OS108 is a fast, open and Secure Desktop Operating System built on top of NetBSD. https://os108.org/
reference
http://www.openbsd.org/faq/index.html 总的官方文档
https://www.openbsdhandbook.com/installation/