亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
1234下一頁
最近訪問板塊 發(fā)新帖
查看: 115231 | 回復(fù): 31
打印 上一主題 下一主題

[OpenBSD] Basic OpenBSD Setup as Desktop (OpenBSD值得研究 ^_^) [復(fù)制鏈接]

論壇徽章:
13
15-16賽季CBA聯(lián)賽之同曦
日期:2016-01-28 19:52:032015亞冠之北京國安
日期:2015-10-07 14:28:19NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03處女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午馬
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56獅子座
日期:2013-09-08 08:37:52
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2012-06-04 14:53 |只看該作者 |倒序?yàn)g覽
本帖最后由 ulovko 于 2013-04-06 11:09 編輯

FROM: http://blog.chinaunix.net/uid-25256412-id-3233391.html

1> 安裝 OpenBSD5.1 的準(zhǔn)備工作

下載地址:ftp://ftp.openbsd.org/pub/OpenBSD/5.1/amd64/install51.iso
官方最新FAQ:ftp://ftp.openbsd.org/pub/OpenBSD/doc/history/obsd-faq49.pdf
官方最新PF:ftp://ftp.openbsd.org/pub/OpenBSD/doc/history/pf-faq49.pdf
簡體中文FAQ 4.6: obsd_FAQ46.zip (424.82 KB, 下載次數(shù): 221)
簡體中文FAQ 4.8: obsd_FAQ48.zip (365.37 KB, 下載次數(shù): 187)

=== OpenBSD5.1 系統(tǒng)配套歌曲 ===
MP3格式:ftp://ftp.openbsd.org/pub/OpenBSD/songs/song51.mp3
OGG格式:ftp://ftp.openbsd.org/pub/OpenBSD/songs/song51.ogg
=== OpenBSD5.1 系統(tǒng)配套歌曲 ===

2> 請開始安裝 OpenBSD5.1

安裝教程:http://www.openbsd.org/faq/faq4.html#InstStart

啟動計(jì)算機(jī)開始安裝:








重啟計(jì)算機(jī):

使用剛剛創(chuàng)建的普通用戶登陸:


登陸后查看郵件:
切換到root,向dmesg@openbsd.org發(fā)送機(jī)器信息為社區(qū)的發(fā)展盡一份心力(PS: 不要老發(fā)虛擬機(jī)信息)!

# visudo  (如圖中所示,允許wheel組使用sudo ^_^)

測試 sudo是否配置成功:


3> 簡單認(rèn)識OpenBSD5.1

  1. # cat /etc/myname        (查看主機(jī)名)
  2. obsd5.kotzu.org
  3. # cat /etc/hostname.em0  (查看網(wǎng)卡配置)
  4. dhcp
  5. # cat /etc/hostname.em0  (靜態(tài)地址會是這樣)
  6. 192.168.1.11 255.255.255.0 NONE NONE           (依次是:inet ipaddress netmask broadcastaddress options)
  7. # cat /etc/mygate        (配置網(wǎng)關(guān)地址)
  8. 192.168.1.1
  9. # cat /etc/resolv.conf   (配置DNS)
  10. search kotzu.org
  11. nameserver 202.106.46.151
  12. nameserver 202.106.0.20
  13. lookup file bind

復(fù)制代碼
4> 關(guān)于boot菜單 /etc/boot.conf

  1. boot> set timeout 60      (boot delay, 5 seconds by default)
  2. boot> boot -s             (To boot into single-user mode)
  3. #/bin/sh /etc/netstart    (Start the network while in single-user mode)

  4. boot> boot -s /bsd.old    (To boot an old kernel in single-user mode)
  5. # man boot
  6. FILES
  7.      /usr/mdec/biosboot    first stage bootstrap
  8.      /usr/mdec/pxeboot     PXE bootstrap
  9.      /boot                 system bootstrap
  10.      /etc/boot.conf        system bootstrap's startup file
  11.      /bsd                  kernel image
  12.      /bsd.sp               kernel image for single processor machines
  13.      /bsd.mp               kernel image for multiprocessor machines
  14.      /bsd.rd               kernel image for installation/recovery

  15. EXAMPLES
  16.      Boot the default kernel:

  17.            boot> boot

  18.      Remove the 5 second pause at boot-time permanently, causing boot to load
  19.      the kernel immediately without prompting:

  20.            # echo "boot" > /etc/boot.conf

  21.      Use serial console.  A null modem cable should connect the specified
  22.      serial port to a terminal.  Useful for debugging.

  23.            boot> set tty com0

  24.      Invoke the serial console at every boot:

  25.            # echo "set tty com0" > /etc/boot.conf

復(fù)制代碼
5> 使用本地化語言(簡體中文)

  1. $ ls /usr/share/locale/zh_
  2. zh_CN.GB18030/         zh_CN.eucCN/        zh_TW.Big5/        zh_TW.eucTW/
  3. zh_CN.UTF-8/           zh_TW.BIG5/         zh_TW.UTF-8/

  4. $ vim ~/.profile
  5. export LANG="zh_CN.UTF-8"
  6. export LC_CTYPE="zh_CN.UTF-8"                (字符類型)
  7. export LC_COLLATE="zh_CN.UTF-8"                (字符對比規(guī)則)
  8. export LC_TIME="zh_CN.UTF-8"                (時間類型)
  9. export LC_NUMERIC="zh_CN.UTF-8"                (數(shù)字類型)
  10. export LC_MONETARY="zh_CN.UTF-8"        (貨幣類型)
  11. export LC_MESSAGES="zh_CN.UTF-8"        (消息/提示類型)
  12. export LC_ALL="zh_CN.UTF-8"
  13. :wq
  14. $ exit            (注銷生效)
  15. 恭喜閣下終于看到母語了^_^
  16. --------------------------------------------4.8之前的版本可能要用zh_CN.eucCN
  17. # cd /usr/src/share/locale/ctype
  18. # vim Makefile
  19. LOCALES += zh_CN.eucCN
  20. LOCALESRC_zh_CN.eucCN = zh_CN.eucCN
  21. LOCALES += zh_CN.UTF-8
  22. LOCALESRC_zh_CN.UTF-8 = en_US.UTF-8
  23. :wq

  24. # cd ..
  25. # make && make install && make clean
復(fù)制代碼
About eucCN: http://zh.wikipedia.org/wiki/EUC

6> 配置PACKAGE & PORTS & SRC

PACKAGE:
  1. $ vi ~/.profile
  2. export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/5.1/packages/`machine -a`/
  3. # export PKG_PATH=ftp://ftp.jaist.ac.jp/pub/OpenBSD/5.1/packages/`machine -a`/
  4. export FETCH_PACKAGES=yes
  5. :wq
  6. $ exit            (注銷生效)

  7. $ sudo pkg_add -v axel             (安裝axel)
  8. axel-2.4 : libiconv-1.14: ok
  9. axel-2.4 : gettext-0.18.1p1: ok
  10. axel-2.4 : ok
  11. $ axel -V
  12. Axel version 2.4  (OpenBSD)
  13. Copyright 2001-2002 Wilmer van der Gaast.

  14. $ sudo pkg_add -v wget             (安裝wget)
  15. wget-1.13.4 : libidn-1.22: ok
  16. wget-1.13.4 : ok
  17. $ wget -V
  18. GNU Wget 1.13.4 built on openbsd5.1.
  19. ...
  20. ...
復(fù)制代碼
PORTS & SRC:

  1. # axel -a 'ftp://ftp.openbsd.org/pub/OpenBSD/5.1/src.tar.gz'      (下載src)
  2. # axel -a 'ftp://ftp.openbsd.org/pub/OpenBSD/5.1/sys.tar.gz'      (下載sys)
  3. # axel -a 'ftp://ftp.openbsd.org/pub/OpenBSD/5.1/ports.tar.gz'    (下載ports)
  4. # axel -a 'ftp://ftp.openbsd.org/pub/OpenBSD/5.1/xenocara.tar.gz' (里面包含顯卡驅(qū)動)

  5. # cd /usr/src
  6. # tar -zxvpf ~/src.tar.gz      (Installing the Source Code)
  7. # tar -zxvpf ~/sys.tar.gz      (Installing the Sys Code)

  8. # cd /usr
  9. # tar -zxvpf ~/ports.tar.gz    (Installing the Ports Collection)
  10. # tar -zxvpf ~/xenocara.tar.gz (Installing the Drivers Collection)

復(fù)制代碼
Customizing Download Sources:

  1. # cd /usr/ports/infrastructure/templates
  2. # cp network.conf.template ../db/network.conf
  3. # vi ../db/network.conf        (其實(shí)默認(rèn)的就不錯,哥們你看著辦吧^_^)


  4. # vim /etc/mk.conf
  5. WRKOBJDIR=/usr/obj/ports
  6. DISTDIR=/usr/distfiles
  7. PACKAGE_REPOSITORY=/usr/packages
  8. FETCH_CMD=/usr/local/bin/axel -a -S4
  9. MASTER_SITE_OVERRIDE=\
  10.         ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/${DIST_SUBDIR}/\
  11.         ftp://ftp.jaist.ac.jp/pub/OpenBSD/distfiles/${DIST_SUBDIR}/
  12. :wq
復(fù)制代碼
  • The working directory of ports. This is controlled by the WRKOBJDIR variable, which specifies the directory which will contain the working directories.
  • The directory containing distribution files. This is controlled by the DISTDIR variable.
  • The directory containing newly built binary packages. This is controlled by the PACKAGE_REPOSITORY variable.


7> PKG_ADD & PORTS 安裝 VIM

ports安裝 VIM:

  1. # cd /usr/ports
  2. # make print-index
  3. # grep -i ^vim INDEX            (Finding Software by Name)
  4. # make search key=vim           (Finding by Keyword)
  5. ...
  6. ...
  7. Port:        vim-7.3.154p2-no_x11
  8. Path: editors/vim,-main,no_x11
  9. Info:        vi clone, many additional features
  10. Maint: Chris Kuethe  <ckuethe@openbsd.org>
  11. Index: editors
  12. L-deps: STEM->=0.10.38:devel/gettext converters/libiconv
  13. B-deps: STEM->=0.10.38:devel/gettext STEM->=1.21:textproc/groff archivers/bzip2
  14. R-deps: STEM->=0.10.38:devel/gettext
  15. Archs:  any
  16. ...
  17. ...
  18. (L-deps->:libraries used by this port  B-deps->:lists software that is required to build this port
  19. R-deps->:non-library software that must be present to actually run this port)

  20. # cd editors/vim && make install clean
復(fù)制代碼
package安裝 VIM:

  1. # man pkg_add
  2. pkg_add can be used to install new packages, to replace existing packages with other flavors
  3. (option -r) or to update packages to newer versions (option -u) [PS:這個跟FreeBSD可不同哦!]

  4. # vi ~/.profile           (注意這里是root,也需要配置!)
  5. export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/5.1/packages/`machine -a`/
  6. export FETCH_PACKAGES=yes
  7. :wq
  8. # exit            (注銷生效)

  9. # pkg_add -v vim       (安裝VIM)
  10. Ambiguous:  vim could be vim-7.3.154p2-no_x11 vim-7.3.154p2-gtk2
  11. (很人性化吧,還有提示的喲!你會發(fā)現(xiàn)ports里面抓,和現(xiàn)在都有這么多不同的vim?
  12. OpenBSD稱之為Flavors! 其實(shí)就是不同的Option罷了^_^, 閑言少敘,書歸正轉(zhuǎn)!)

  13. # pkg_add -v vim-7.3.154p2-no_x11
  14. vim-7.3.154p2-no_x11:  ok
  15. # vim --version
  16. VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 13 2012 07:40:51)
  17. Included patches: 1-8, 11-20, 22-26, 28-34, 38-50, 52-62, 65-78, 80-84, 86, 88-94
  18. ...
  19. ...
  20. # vim ~/.vimrc
  21. set nomodeline                (這個一定要寫,目前有這個安裝漏洞)
  22. set nocp
  23. set hls is
  24. set ic
  25. set cindent
  26. set autoindent
  27. set backspace=2
  28. set nobackup
  29. set noswapfile
  30. set shiftwidth=2
  31. set tabstop=2
  32. set softtabstop=2
  33. set expandtab
  34. set ruler
  35. set mouse=v
  36. syntax on
  37. "set bg=dark                (更改背景色調(diào)/默認(rèn)為light, " 為注釋!)
  38. :wq                        (詳情:vimtutor)

  39. # cp .vimrc ~ko/.vimrc    (給普通用戶也送一份)
  40. # chown -R ko:ko ~ko/     (更改為合適的權(quán)限)
復(fù)制代碼
Customizing Alias:

  1. $ vim ~/.profile
  2. #
  3. # sh/ksh initialization

  4. set autolist
  5. alias cl='clear'
  6. alias df='df -h'
  7. alias la='ls -la'
  8. alias lh='ls -lh'
  9. alias lf='ls -FA'
  10. alias ll='ls -l'
  11. :wq
  12. $ exit            (注銷生效)
復(fù)制代碼
X> Reserved for future use....


Basic FreeBSD Setup as Desktop: http://72891.cn/thread-3751834-1-1.html
Basic NetBSD Setup as Desktop: http://72891.cn/thread-3751787-1-1.html
Basic OpenBSD Setup as Desktop: http://72891.cn/thread-3751016-1-1.html
Basic Debian Setup as Desktop: http://72891.cn/thread-3751791-1-1.html
Basic Ubuntu Setup as Desktop: http://72891.cn/thread-3746337-1-1.html
Basic Fedora Setup as Desktop: http://72891.cn/thread-3761672-1-1.html
Basic PC-BSD Setup as Desktop: http://72891.cn/thread-3751857-1-1.html

評分

參與人數(shù) 1可用積分 +10 信譽(yù)積分 +2 收起 理由
fender0107401 + 10 + 2 非常好,感謝分享,非常有素質(zhì),對于推廣Op.

查看全部評分

論壇徽章:
13
15-16賽季CBA聯(lián)賽之同曦
日期:2016-01-28 19:52:032015亞冠之北京國安
日期:2015-10-07 14:28:19NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03處女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午馬
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56獅子座
日期:2013-09-08 08:37:52
2 [報(bào)告]
發(fā)表于 2012-06-04 14:53 |只看該作者
本帖最后由 ulovko 于 2012-06-09 09:31 編輯

8> 安裝 Xfce4
關(guān)于Xorg配置 : http://blog.chinaunix.net/uid-25256412-id-2939430.html

  1. # pkg_add -v xfce4-session xfce-utils xfdesktop xfconf xfce4-mixer xfce4-settings xfce4-panel xfce4-terminal xfce4-places xfwm4 xfwm4-themes gamin

  2. # cat >>/etc/rc.conf.local<<EOF
  3. rc_scripts="dbus_daemon"
  4. EOF
  5. $ echo >~/.xinitrc startxfce4
  6. $ startx

  7. # echo >>/etc/rc.conf.local xdm_flags=""
  8. # exit
  9. $ echo >~/.xsession startxfce4                (如果使用xdm)
  10. # reboot

  11. OR: use gdm as login manager instead of xdm
  12. # pkg_add -v gdm
  13. # vim /etc/rc.conf.local
  14. xdm_flags=NO
  15. rc_scripts="dbus_daemon gdm"
  16. aucat_flags=""               (enable the aucat sound daemon at boot time)
  17. :wq
  18. # aucat -l
復(fù)制代碼
9> 常用 APP

Chromium/Thunderbird/FileZilla/Empathy(IM Client)/Xchat(IRC Only)/Mplayer/VLC/Audacious

  1. # pkg_add -v chromium             (chrome的表哥)

  2. There are some things to do for Chromium to be a bit functional :
  3. # echo >>/etc/sysctl.conf kern.shminfo.shmall=32768
  4. # vim /etc/login.conf
  5. in the default section:
  6. add
  7. penfiles-max=400:\                (重啟生效)

  8. # vim /usr/local/share/application/chromium.desktop
  9. [Desktop Entry]
  10. Version=1.0
  11. Type=Application
  12. Categories=Application;Network
  13. Name=Chromium
  14. Comment=Chromium Web browser
  15. Icon=/usr/local/chrome/product_logo_48.png
  16. Exec=chrome %u
  17. Path=
  18. Terminal=false
  19. StartupNotify=false
  20. :wq
  21. ---------------------------------
  22. 鳥兒:
  23. 一些我的小碎碎念;
  24. 瀏覽器這塊,如果裝firefox的話,要先把locale設(shè)置好,不然firefox啟動異常,有進(jìn)程,無界面。
  25. chromium 的話,root用戶會報(bào)錯,必須用下面的命令啟動:
  26. chromium --user-data-dir=/yourpath
  27. 復(fù)制代碼
  28. 如果你有4核或者主頻高的cpu可以在/etc/rc.conf.local(沒有建立一個)加入:
  29. apmd="-C" ## Or "-A"
  30. 復(fù)制代碼
  31. 深度節(jié)能或者讓OpenBSD自己管理。man apmd 講的已經(jīng)很好懂了。

  32. ---------------------------------
  33. # pkg_add -v mozilla-thunderbird   (Email Client)
  34. # pkg_add -v filezilla             (FTP Client)
  35. # pkg_add -v empathy               (IM Client)
  36. # pkg_add -v xchat                 (IRC Only)
  37. # pkg_add -v mplayer               (建議安裝)
  38. # pkg_add -v vlc                   (VLC media player)
  39. # pkg_add -v audacious-plugins     (Audio Player)
  40. PS: To have sound output in Audacious, be sure to select “Sndio output plugin” in preferences/audio.

復(fù)制代碼
Mousepad/epdfview/GIMP/Ristretto/Thunar-archive/Galculator/LibreOffice

  1. # pkg_add -v mousepad              (Text Editor)
  2. # pkg_add -v epdfview              (PDF Viewer)
  3. # pkg_add -v gimp                  (Image Processing)
  4. # pkg_add -v ristretto             (Image Displayer)
  5. # pkg_add -v thunar-archive        (Archive Manager)
  6. # pkg_add -v galculator            (Calculator)
  7. # pkg_add -v libreoffice-i18n-cn libreoffice-java     (Openoffice的表弟)
  8. Add support for .rar archives rar/unrar
  9. # cd /usr/ports/archives/unrar && make install clean  (沒有binary)
復(fù)制代碼
InputMethod : Scim / fcitx

  1. # pkg_add -v scim-pinyin

  2. # wget 'http://fcitx.googlecode.com/files/fcitx-4.2.3.tar.xz'
  3. # wget 'http://fcitx.googlecode.com/files/fcitx-4.2.3_dict.tar.xz'      (帶詞庫方便沒有網(wǎng)絡(luò)連接的機(jī)器!)

  4. 由于OpenBSD默認(rèn)安裝比較干凈,所以來安裝一下xz ^_^
  5. # pkg_add -v xz
  6. xz-5.0.3p1 : ok

  7. # xz -dk fcitx-4.2.3.tar.xz
  8. # tar -xvf fcitx-4.2.3.tar
  9. OR:
  10. # xzcat fcitx-4.2.3.tar.xz |tar -xvf -
  11. # more fcitx-4.2.3/INSTALL
  12. Basic Install
  13. ...
  14. ...
  15. # vim ~/.profile
  16. export XIM_PROGRAM=fcitx
  17. export XIM=fcitx
  18. export XMODIFIERS="@im=fcitx"
  19. export QT_IM_MODULE=XIM
  20. export GTK_IM_MODULE=XIM

  21. # vim ~/.xinitrc
  22. exec fcitx &            (注意放到第一位優(yōu)先執(zhí)行)
  23. # reboot
復(fù)制代碼
NOTE : the OpenBSD developers strongly suggest to use binary packages whenever possible.

10> TIPS

  1. # man afterboot
  2. # man intro
  3. # man 8 intro
  4. # man hier

  5. Manually update the files database so we can use the locate command to look for a file
  6. # /usr/libexec/locate.updatedb
  7. # locate <name>

  8. List installed packages
  9. # pkg_info |more

  10. Search for packages in repository (provided by PKG_PATH)
  11. # pkg_info -Q <search string>

  12. Update all packages on the system
  13. # pkg_add -v -u

  14. # vim /etc/fstab

  15. :wq

  16. (FFS records the last time a file was accessed, meaning the last time it was executed or
  17. read by any means. These updates consume a small but measurable amount of time and disk performance.
  18. "noatime" is very useful the hard disk and the screen are the two most power-hungry devices on a laptop
  19. and if you can reduce the amount of time your laptop's hard drive spins you will extend battery life.)

  20. (Soft update, or "softdep," mounts organize and arrange disk writes so that the file system metadata
  21. on the disk remains consistent, and it comes close to giving the performance of an "async"
  22. mount with the reliability of a "sync" mount.)
復(fù)制代碼
11> Systrace

  1. One of the more exciting features in OpenBSD is systrace(1), a system call access manager.
  2. With systrace, a system administrator can say which system calls can be made by which programs,
  3. and how those calls can be made.
  4. Proper use of systrace can greatly reduce the risks inherent in running poorly written
  5. or exploitable programs.
復(fù)制代碼
12> Insecure Console (Single-user mode)


When you boot FreeBSD in single-user mode, you get a root command
prompt. This is fine for your laptop and works nicely for servers in your
corporate datacenter, but what about machines in untrusted facilities?

  1. # man /etc/ttys
  2. /secure
  3. secure   If on is also specified, allows users with a UID of 0 to log in
  4.          on this line.   If set for the console entry, then init(8) will
  5.          start a single-user shell without asking for the superuser password.
復(fù)制代碼
To make the console require a root login when booted into single-usermode,
change the secure to insecure.

  1. # vim /etc/ttys
  2. #
  3. #      $OpenBSD:  ttys,v 1.2 2008/01/09 17:39:42 miod Exp $
  4. #
  5. # name  getty                            type    status          comments
  6. #
  7. console "/usr/libexec/getty std.9600"    vt220   off  insecure
  8. :wq
  9. # reboot
  10. >boot -s
復(fù)制代碼
13> PF Basic Setup
詳見 CU Blog: http://blog.chinaunix.net/uid-25256412-id-3223143.html


14> Basic FreeBSD Setup
詳見 CU Blog: http://blog.chinaunix.net/uid-25256412-id-2939430.html

15> OpenBSD 下顯示CPU 硬盤 主板溫度 CPU風(fēng)扇轉(zhuǎn)速腳本
FROM: http://72891.cn/thread-1305553-1-1.html (wosl2001)

  1. #!/bin/sh
  2. typeset -i10 HDDCUR
  3. typeset -i10 HDDMAX
  4. typeset -i10 HDDMIN
  5. typeset -i10 CPU
  6. typeset -i10 MainBOARD
  7. typeset -i10 FAN
  8. RAWTEMP=`atactl /dev/sd0c readattr | grep Temperature | cut -f 5`
  9. HDDCUR=`echo $RAWTEMP | sed -e 's/0x.\{10\}/0x/'`
  10. HDDMAX=`echo $RAWTEMP | sed -e 's/0x.\{2\}/0x/' | sed -e 's/.\{8\}$//'`
  11. HDDMIN=`echo $RAWTEMP | sed -e 's/0x.\{6\}/0x/' | sed -e 's/.\{4\}$//'`
  12. CPU=`sysctl hw.sensors.it0.temp0 | cut -d '=' -f2 | cut -c1-2 `
  13. MainBOARD=`sysctl hw.sensors.it0.temp1 | cut -d '=' -f2 | cut -c1-2 `
  14. FAN=`sysctl hw.sensors.it0.fan0 | cut -d '=' -f2 | cut -c1-4 `
  15. echo "Current HDD Temp $HDDCUR degC (Min/Max $HDDMIN/$HDDMAX)"
  16. echo "Current CPU Temp $CPU degC"
  17. echo "Current MainBOARD Temp $MainBOARD degC"
  18. echo "Current CPU FAN $FAN rpm"

復(fù)制代碼
16> Reserved for future use....

論壇徽章:
13
15-16賽季CBA聯(lián)賽之同曦
日期:2016-01-28 19:52:032015亞冠之北京國安
日期:2015-10-07 14:28:19NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03處女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午馬
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56獅子座
日期:2013-09-08 08:37:52
3 [報(bào)告]
發(fā)表于 2012-06-04 14:54 |只看該作者
本帖最后由 ulovko 于 2012-06-04 15:14 編輯

編輯的時候很整齊,結(jié)果顯示的時候就變了

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2012-06-04 15:14 |只看該作者
呵呵 好好寫吧 不行寫在wiki上

論壇徽章:
13
15-16賽季CBA聯(lián)賽之同曦
日期:2016-01-28 19:52:032015亞冠之北京國安
日期:2015-10-07 14:28:19NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03處女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午馬
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56獅子座
日期:2013-09-08 08:37:52
5 [報(bào)告]
發(fā)表于 2012-06-04 15:15 |只看該作者
回復(fù) 4# wosl2001


    也行!

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2012-06-04 16:13 |只看該作者
真的是好詳細(xì) {:2_178:}樓主辛苦了

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2012-06-04 20:29 |只看該作者
謝謝分享~~

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2012-06-04 23:51 |只看該作者
這些操作樓主都一一實(shí)踐過么?
fcitx不修改源代碼,在OpenBSD上能直接編譯通過?
將LANG設(shè)置為zh_CN.UTF-8后,perl不會給出錯誤提示?

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2012-06-05 07:29 |只看該作者
一些我的小碎碎念;
瀏覽器這塊,如果裝firefox的話,要先把locale設(shè)置好,不然firefox啟動異常,有進(jìn)程,無界面
chromium 的話,root用戶會報(bào)錯,必須用下面的命令啟動:
  1. chromium --user-data-dir=/yourpath
復(fù)制代碼
如果你有4核或者主頻高的cpu可以在/etc/rc.conf.local(沒有建立一個)加入:
  1. apmd="-C" ## Or "-A"
復(fù)制代碼
深度節(jié)能或者讓OpenBSD自己管理。man apmd 講的已經(jīng)很好懂了。

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2012-06-05 09:11 |只看該作者
很不錯,謝謝
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP