免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] Basic FreeBSD Setup as Desktop (FreeBSD占有率99.8% ^_^) [复制链接]

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期: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
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-09 15:51 |只看该作者 |正序浏览
本帖最后由 ulovko 于 2013-04-06 11:14 编辑

官方简体中文安装手册:http://www.freebsd.org/doc/zh_CN/books/handbook/
官方en_US安装手册:http://www.freebsd.org/doc/en_US ... handbook/index.html
官方简体中文安装手册 下载: ftp://ftp.freebsd.org/pub/FreeBSD/doc/zh_CN/books/handbook/

FROM: http://blog.chinaunix.net/uid-25256412-id-2939430.html
1: 使用 USB 安装 FreeBSD(设备编号自行修改)
  1. # dd if=9.1-RELEASE-amd64-memstick.img of=/dev/da1 bs=10240 conv=sync
复制代码
Tips: Windows环境下如何将 *.img 写入USB ?
Image Writer for Windows:  https://launchpad.net/win32-image-writer/+download
win32diskimager-binary.zip (5.4 MB, 下载次数: 6987)


安装过程中会询问关于网络配置,会许有的人配置不正确导致无法连接internet!
给出兄弟我的配置:

  1. > more /etc/rc.conf
  2. hostname="ko.kotzu.org"
  3. defaultrouter="192.168.1.1"

  4. ifconfig_alc0="inet 192.168.1.5 netmask 255.255.255.0"
  5. ifconfig_alc0_ipv6="inet6 accept_rtadv"

  6. # Wireless
  7. #wlans_ath0="wlan0"
  8. #ifconfig_wlan0="WPA DHCP"
  9. #ifconfig_wlan0="WPA inet 192.168.1.5 netmask 255.255.255.0"
  10. #ifconfig_wlan0_ipv6="inet6 accept_rtadv"

复制代码
还有一点关于WIFI !
着个其实不用写什么了!
官方文档有简体中文,写的非常详细!

下载页面:ftp://ftp.freebsd.org/pub/FreeBS ... 312/books/handbook/
在线观看:http://docs.freebsd.org/doc/9.0- ... twork-wireless.html


安装source 和 ports
等待重启完成 ...
  1. # vi /boot/loader.conf
  2. loader_logo="beastie"                (boot menu logo)
  3. autoboot_delay="3"                (boot delay)
  4. :wq

  5. # vi /etc/rc.conf
  6. blanktime="600"
  7. saver="daemon"
  8. hald_enable="YES"
  9. dbus_enable="YES"
  10. powerd_enable="YES"  
  11. powerd_flags="-a adaptive -b adaptive -n adaptive"   # 保持温度不会过高就是了
  12. :wq

  13. # kldload coretemp
  14. # sysctl -a | grep temper
  15. hw.acpi.thermal.tz0.temperature: 60.0C
  16. dev.cpu.0.temperature: 59.0C
  17. dev.cpu.1.temperature: 59.0C
  18. dev.cpu.2.temperature: 59.0C
  19. dev.cpu.3.temperature: 59.0C
  20. dev.cpu.4.temperature: 61.0C
  21. dev.cpu.5.temperature: 62.0C
  22. dev.cpu.6.temperature: 59.0C
  23. dev.cpu.7.temperature: 59.0C
复制代码
检查一下硬件信息
  1. # dmesg | grep attached        (列出没有被驱动的硬件)
  2. # pciconf -lv                (更加详细)          /var/run/dmesg.boot        (see also)
  3.                         (找到声卡 和 显卡加载相应驱动)
  4. # dmidecode                 (DMI table decoder)
复制代码
声卡 驱动
  1. # kldload snd_driver        (加载所有声卡驱动自动匹配)
  2. # cat /dev/sndstat        (查看声卡驱动信息)
  3. # dmesg | grep hdac
  4. # cat filename > /dev/dsp        (测试声卡,filename为任意文件产生噪音说明正常工作)

  5. # vi /boot/device.hints
  6. hint.pcm.0.vol="50"        (pcm Module加载时,音量默认为50)
  7. :wq

  8. # Microphone     (话筒)
  9. # mixer

  10. # sysctl dev.pcm.0.play.vchans=4
  11. # sysctl dev.pcm.0.rec.vchans=4                ( 虚拟声道(Virtual Sound Channels)4个音源能够同时播放)
  12. # sysctl hw.snd.maxautovchans=4

  13. # less /boot/defaults/loader.conf
  14. /snd                        (找到所有声卡驱动支持项)
  15. # pciconf -lv | egrep -i -A3 -B5 'audio|multimedia'        (查看device 类型)
  16. # vi /boot/loader.conf
  17. snd_hda_load="YES"        (启动时加载 声卡驱动/添加自己的声卡驱动)
  18. :wq
复制代码
2: 时间校准 (很重要)
  1. # tzsetup                        (时区设置 CST)
  2. # ntpdate cn.pool.ntp.org        (校准)

  3. # vi /etc/rc.conf
  4. ntpd_enable="YES"                (配置开机启动 ntpd)
  5. ntpd_sync_on_start="YES"
  6. :wq
  7. # /etc/rc.d/ntpd start

  8. # vi /etc/ntp.conf
  9. server 1.cn.pool.ntp.org
  10. server 1.asia.pool.ntp.org
  11. server 2.asia.pool.ntp.org        (配置time server)
  12. :wq
  13. # /etc/rc.d/ntpd restart
复制代码
3:更新 source 和 doc
  1. # cp /usr/share/examples/cvsup/standard-supfile /etc
  2. # cd /etc/; vi standard-supfile
  3. *default host=cvsup.tw.freebsd.org (修改此项)
  4. *default base=/var/db
  5. *default prefix=/usr
  6. *default release=cvs tag=RELENG_9_0
  7. *default delete use-rel-suffix
  8. *default compress
  9. src-all
  10. doc-all tag=.   (添加此项)
  11. :wq
  12. # csup /etc/standard-supfile
复制代码
4:ports 和 package 文件下载地址设置

  1. # vi /etc/make.conf                (详情:man make.conf)
  2. MASTER_SITE_BACKUP?=        \
  3.         ftp://ftp.hk.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
  4.         ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
  5.         ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/        (注意这里没换行了)
  6. MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
  7. CPUTYPE?=core2                (根据情况调整,起到优化作用:me -> i7)
  8. # sysctl hw.model        (more /usr/share/example/etc/make.conf)
  9. INSTALL=install -C        (比对已安装文件与最新文件 版本号,低于新版本才安装)
  10. :wq

  11. 查看CPU支持指令集合:
  12. # grep -i features /var/run/dmesg.boot
  13. Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  14.   Features2=0x98e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT>
  15.   AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  16.   AMD Features2=0x1<LAHF>

  17. 查看当前操作系统开启的指令集合:
  18. # cd /usr/share/mk
  19. # make -V CPUTYPE
  20. core2
  21. # make -V MACHINE_CPU
  22. ssse3 sse3 amd64 sse2 sse mmx

  23. tcsh/csh:
  24. # vi ~/.cshrc
  25. setenv        PACKAGEROOT        ftp://ftp.tw.freebsd.org
  26. setenv        PKG_TMPDIR        /var/garbage        (package安装后来这里看看:/var/db/pkg)
  27. :wq
  28. # exit            (注销生效)


  29. sh/bash:
  30. $ vi ~/.profile
  31. export PACKAGEROOT=ftp://ftp.tw.freebsd.org
  32. export PKG_TMPDIR=/var/garbage
  33. :wq
  34. # exit            (注销生效)

  35. #
  36. # pkg_add -r vim                (使用远程服务器安装)
  37. # pkg_version -v  (list outdated ports that have a newer version available in the Ports)

  38. # pkg_version -v |grep vim        (首先查出版本号)
  39. # pkg_delete vim-7.3.81
  40. 或者:
  41. # pkg_delete /var/db/pkg/vim-7.3.81
  42. # pkg_delete xchat\*                (使用通配符)

  43. # pkg_info |grep -i vim        (首先查出版本号)
  44. # pkg_info -L vim-7.3.81 |less        (显示这个软件包安装的所有文件)
  45. # pkg_info vim-7.3.81

复制代码
5: 更新 ports ( portmaster)
  1. # portsnap fetch extract          (首次更新port使用此命令)
  2. # portsnap fetch update                (日后更新port使用此命令)
  3. vi /etc/crontab
  4. 0 5 * * * root /usr/sbin/portsnap cron update  (自动更新port)
  5. :wq
复制代码
安装 portmaster 用于更新 软件包:

  1. # cd /usr/ports/ports-mgmt/portmaster && make install clean
  2. ----------------------------------------------------------------------
  3. # ls /usr/local/etc/portmaster.rc.sample
  4. # vim /usr/local/etc/portmaster.rc
  5. # Do not create temporary backup packages before pkg_delete (-B)
  6. NO_BACKUP=Bopt

  7. # Always delete stale distfiles without prompting (-d)
  8. ALWAYS_SCRUB_DISTFILES=dopt

  9. # Do not run 'make config' for ports that need updating (-G)
  10. PM_NO_MAKE_CONFIG=Gopt

  11. # Be verbose (-v)
  12. PM_VERBOSE=vopt

  13. # Save copies of old shared libraries (recommended) (-w)
  14. SAVE_SHARED=wopt

  15. :wq
  16. ----------------------------------------------------------------------
  17. # /usr/local/sbin/portmaster -L > portmaster.out        (列出可更新的软件)
  18. ===>>> linux_base-fc-4_8
  19. ===>>> New version available: linux_base-fc-4_9

  20. # /usr/local/sbin/portmaster linux_base-fc-4_8                (更新 某软件)
  21. # /usr/local/sbin/portmaster -e openoffice.org-2.2.0        (卸载某软件与其依赖)
  22. #
  23. # portmaster -a                        (升级所有已安装的 ports)
  24. # portmaster -af                (always rebuild ports overrides -i)
  25. # portmaster -r

  26. [-R] -r name/glob of port directory in /var/db/pkg
  27.          rebuild the specified port, and all ports that depend on it.  The
  28.          list of dependent ports is built according to origin (i.e.,
  29.          category/portname) not by the version number of the installed port.
  30.          So if you do portmaster -r fooport-1.23 and it is necessary to
  31.          restart using -R but the newly installed port is now fooport-1.24 you
  32.          can do portmaster -R -r fooport-1.24 and it should pick up where you
  33.          left off.  The -r option can be specified more than once.

  34. # cd /usr/ports/sysutils/bsdadminscripts/ && make install clean
  35. > pkg_libchk                   (检查缺失的动态库,找出有问题的 ports)
  36. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-sbr.so misses libpng.so.6
  37. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-sbr.so misses libpng.so.6
  38. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-uca.so misses libpng.so.6
  39. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-uca.so misses libpng.so.6
  40. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-uca.so misses libpng.so.6
  41. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-uca.so misses libpng.so.6
  42. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-wallpaper-plugin.so misses libpng.so.6
  43. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-wallpaper-plugin.so misses libpng.so.6
  44. Thunar-1.3.0: /usr/local/lib/thunarx-2/thunar-wallpaper-plugin.so misses libpng.so.6
  45. Thunar-1.3.0: /usr/local/lib/xfce4/panel/plugins/libthunar-tpa.so misses libpng.so.6
  46. Thunar-1.3.0: /usr/local/lib/xfce4/panel/plugins/libthunar-tpa.so misses libpng.so.6
  47. Thunar-1.3.0: /usr/local/lib/xfce4/panel/plugins/libthunar-tpa.so misses libpng.so.6
  48. ...
  49. ...
  50. 另一种更新 软件包 的方法:
  51. # make deinstall && make install clean        (前提是你的ports 已经更新!)

  52. 下面方法多用于 测试不同版本软件:
  53. # make install                                        (注意没有:clean ,保留下载的源码!)
  54. # make deinstall && make reinstall                (前提是下载的源码没有被清理!)

  55. # make PREFIX=/usr/pkg install clean                (Changing the Install Path)

  56. Cleaning Up Ports:
  57. # make install clean        (clean a port immediately upon install)

  58. You might also want to remove the original distfiles, stored in /usr/ports/distfiles.
  59. # make distclean         (removes the distfiles for the current port and all dependencies)
  60. OR:
  61. # portmaster --clean-distfiles
  62. To clean the entire ports tree:
  63. # make clean -DNOCLEANDEPENDS         (  run directly under /usr/ports)

  64. Building Packages:

  65. # make package
  66. This installs the program on the local machine and creates a package in the port’s directory.
  67. Simply copy this package to other systems and run pkg_add(1) to install it.
  68. If you create the directory /usr/ports/packages, the Ports Collection will
  69. create a packages tree in that location. Instead of placing the new package
  70. in the port’s directory, the port will place the package in the appropriate
  71. category under /usr/ports/packages.
  72. --------------------------------------------------------------------------------
  73. LOCAL PACKAGE REPOSITORIES
  74. Remember the PACKAGESITE environment variable? Set that to a path on your local
  75. anonymous FTP server (Chapter 17) or an NFS share (Chapter 8) and put your custom
  76. packages there. You can then use pkg_add -r on your other machines, and they will
  77. automatically grab packages from your local repository.
复制代码
6:Binary Updates ( only provides patches to the GENERIC kernel)

  1. # freebsd-update fetch                (download the latest updates to your errata branch)
  2.                                 ( files stored in /var/db/freebsd-update)
  3. # freebsd-update install        (install the downloaded files)
  4. #
  5. # vi /etc/crontab
  6. 0 5 * * * root /usr/sbin/freebsd-update cron (自动更新至 errata-branch)
  7. :wq
  8. Reboot your system ..
复制代码
7:安装 Vim
  1. # cd /usr/ports/editors/vim/
  2. # make WITHOUT_X11=yes install clean
  3. # exit        (注销)

  4. # vim ~/.vimrc
  5. set nomodeline                (这个一定要写,目前有这个安装漏洞)
  6. set nocp
  7. set hls is
  8. set ic
  9. set cindent
  10. set autoindent
  11. set backspace=2
  12. set nobackup
  13. set noswapfile
  14. set shiftwidth=2    ( 缩进为2个空格)
  15. set tabstop=2       (TAB 为2个空格)
  16. set softtabstop=2  (软制表符 为2个空格)
  17. set expandtab        (缩进 和 制表符用空格代替)
  18. set ruler
  19. set mouse=v
  20. syntax on
  21. "set bg=dark                (更改背景色调/默认为light, " 为注释!)
  22. :wq                        (详情:vimtutor)

  23. # vim ~/.cshrc
  24. setenv        EDITOR        vim
  25. :wq
复制代码
8:使用本地化语言
  1. 方法一:Class Definitions
  2. # vim /etc/login.conf
  3. chinese:Chinese Users Account:\
  4.         :charset=UTF-8:\
  5.         :lang=zh_CN.UTF-8:\
  6.         :tc=default:
  7. :wq
  8. # cap_mkdb /etc/login.conf        (rebuilds the database file /etc/login.conf.db)
  9. pw usermod jacky -L chinese        (修改 jacky 的 语言环境)
  10. pw useradd jacky -L chinese        (添加 jacky 并使用中文)

  11. # pw usershow jacky
  12. jacky:*:1001:1001:chinese:0:0:jacky:/home/jacky:/bin/tcsh
  13. # su - jacky
  14. > locale
  15. LANG=zh_CN.UTF-8
  16. LC_CTYPE="zh_CN.UTF-8"
  17. LC_COLLATE="zh_CN.UTF-8"
  18. LC_TIME="zh_CN.UTF-8"
  19. LC_NUMERIC="zh_CN.UTF-8"
  20. LC_MONETARY="zh_CN.UTF-8"
  21. LC_MESSAGES="zh_CN.UTF-8"
  22. LC_ALL=

  23. 方法二:User Definitions
  24. # vim ~/.login_conf
  25. me:\
  26.         :lang=zh_CN.UTF-8:\
  27.         :setenv=LC_CTYPE=zh_CN.UTF-8:\                (字符类型)
  28.         :setenv=LC_COLLATE=zh_CN.UTF-8:\        (字符对比规则)
  29.         :setenv=LC_TIME=zh_CN.UTF-8:\                (时间类型)
  30.         :setenv=LC_NUMERIC=zh_CN.UTF-8:\        (数字类型)
  31.         :setenv=LC_MONETARY=zh_CN.UTF-8:\        (货币类型)
  32.         :setenv=LC_MESSAGES=zh_CN.UTF-8:\        (消息/提示类型)
  33.         :setenv=LC_ALL=zh_CN.UTF-8:\
  34.         :charset=UTF-8:
  35. :wq

  36. PS: 自定义 prompt 和 alias

  37. 方法一:全局设置

  38. vim /etc/csh.cshrc
  39. set prompt = "%B%n@%m [%/] $ "        (详情:man csh /%m)
  40. set autolist                        (TAB命令补全功能)
  41. 方法二:自定义设置
  42. vim ~/.cshrc
  43. set prompt = "%B%n@%m [%/] # "        (注意空格)
  44. set autolist                (TAB 命令补全功能)
  45. alias cl        clear
  46. alias vi        vim       
  47. alias df        df -h


  48. History:                (默认记录文件:~/.history)
  49. # history -c                (清理当前历史记录)
  50. # history -S                (保存当前历史记录)
复制代码
9: Axel / Aria2下载大文件利器 (MP3、影片、软件等)   wget
  1. # cd /usr/ports/ftp/axel && make install clean
  2. # axel -a -n 3 ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.17.tar.bz2        (详情:man axel)

  3. # axel -S4 ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.17.tar.bz2                (自动寻找 4 个最快mirror进行下载)

  4. 通常我用 wget 下网站        (找到资料就下吧!说不准那天站点没了,还是弄下来方便!)
  5. # wget -r -np -p -k --level=2 http://tldp.org/HOWTO/Linux+IPv6-HOWTO/                (wget默认安装)

  6. Aria2 :多链接下载,轻量,平均4-9MB内存使用量,BitTorrent下载速度2.8MiB/s时CPU占用约6%
  7. # cd /usr/ports/www/aria2 && make install clean

  8. (详情:man aria2c)
  9. # aria2c "http://example.org/mylinux.iso"                (直接下载)

  10. # aria2c "http://host/file.zip" "ftp://host2/file.zip"        (同时从 2 个不同源下载 某文件)

  11. # aria2c -x2 -k1M "http://host/file.zip"                        (-x2:一个server只建立 2 个连接 -k1M:man很详细)

  12. # aria2c -s4 http://host/file.zip                                        (-s:总共启用多少个连接)

  13. # aria2c http://example.org/mylinux.torrent                (BT 下载)

  14. # aria2c 'magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C'         (BT Magent URI)

  15. # aria2c http://example.org/mylinux.metalink                (Metalink)

  16. # aria2c -i files.txt -j2                                                        (Download URIs found in text file -j:同时进行任务数)

  17. Resuming Download:
  18. Usually, you can resume transfer by just issuing same command        (aria2c URI)
  19. if the previous transfer is made by aria2.
  20. If the previous transfer is made by a browser or wget like sequential download manager,
  21. then use -c option to continue the transfer        (aria2c -c URI)

  22. BitTorrent Download:

  23. # aria2c --follow-torrent=mem "http://host/file.torrent"        (download files from remote BT file)
  24. # aria2c --max-upload-limit=40k file.torrent         (download using a local torrent file)

  25. Using Proxy:
  26. For HTTP
  27. aria2c --http-proxy="http://proxy:8080" "http://host/file"
  28. aria2c --http-proxy="http://proxy:8080" \
  29. --no-proxy="localhost,127.0.0.1,192.168.0.0/16" "http://host/file"
  30. For FTP
  31. aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"
  32. Proxy with Authorization
  33. aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"
  34. aria2c --http-proxy="http://proxy:8080" \
  35. --http-proxy-user="username" --http-proxy-passwd="password" "http://host/file"

  36. -------------------------------------------------------------------------------------------------------
  37. 也可以应用到ports下载中!(非必需,一般来说FreeBSD的 fetch够用了)
  38. # vim /etc/make.conf
  39. FETCH_CMD=/usr/local/bin/axel -a -S4                (-a:显示每个线程状态信息  -n:连接数)
  40. DISABLE_SIZE=yes                (开启 此功能!)
  41. :wq

  42. 穿越模式:
  43. FETCH_ENV=http_proxy=ur address
  44. FETCH_ENV=ftp_proxy=ur address

  45. 或者 使用其他工具:        (proxychains / runsocks)
  46. FETCH_CMD=proxychains axel
  47. FETCH_CMD=runsocks axel

  48. PS:wget  axel aria2 配置均一样!

  49. FETCH_CMD=/usr/local/bin/wget -c -t 3                (-c:继续以前的下载  -t:默认tries =20)
  50. DISABLE_SIZE=yes                (开启 此功能!)

  51. FETCH_CMD=/usr/local/bin/aria2c -s 4                                (-s:开启4 个连接)
  52. DISABLE_SIZE=yes                (开启 此功能!)

  53. (在Aria2速度不行的时候,我发现Axel速度确实可以!正常情况匹敌!)
复制代码
10:Scim-pinyin (fcitx-sunpinyin) (ibus-pinyin)输入法
  1. # cd /usr/ports/chinese/scim-pinyin && make install clean
  2. > vim ~/.cshrc
  3. # set scim as the XIM  input server
  4. setenv        XMODIFIERS        @im=SCIM
  5. :wq

  6. # xfce环境下,支持中文默认用英文情况下(Terminal内右键 Input Methods -SCIM)

  7. # cd /usr/ports/chinese/fcitx-sunpinyin && make install clean
  8. > vim ~/.cshrc
  9. setenv        XMODIFIERS        @im=fcitx
  10. setenv        GTK_IM_MODULE        xim
  11. setenv        QT_IM_MODULE        xim
  12. :wq
  13. > vim ~/.xinitrc
  14. #!/bin/sh
  15. /usr/local/bin/fcitx &    # 确保比xfce提前运行!
  16. /usr/local/bin/startxfce4
  17. /usr/home/ko/start-compiz
  18. :wq

  19. # cd /usr/ports/chinese/ibus-pinyin && make install clean
  20. # more /usr/ports/textproc/ibus/pkg-message
  21. -------------------------------------------------------------------
  22. ibus installation finished. To use ibus, please do the following:

  23. If you are using bash, please add following lines to your $HOME/.bashrc:

  24. export XIM=ibus
  25. export GTK_IM_MODULE=ibus
  26. export QT_IM_MODULE=xim
  27. export XMODIFIERS=@im=ibus
  28. export XIM_PROGRAM="ibus-daemon"
  29. export XIM_ARGS="--daemonize --xim"

  30. If you are using tcsh, please add following lines to your $HOME/.cshrc:

  31. setenv XIM ibus
  32. setenv GTK_IM_MODULE ibus
  33. setenv QT_IM_MODULE xim
  34. setenv XMODIFIERS @im=ibus
  35. setenv XIM_PROGRAM ibus-daemon
  36. setenv XIM_ARGS "--daemonize --xim"

  37. If you are using KDE4, you may create a shell script in $HOME/.kde4/env,
  38. and add following lines:

  39. #!/bin/sh
  40. export XIM=ibus
  41. export GTK_IM_MODULE=ibus
  42. export QT_IM_MODULE=xim
  43. export XMODIFIERS=@im=ibus
  44. export XIM_PROGRAM="ibus-daemon"
  45. export XIM_ARGS="--daemonize --xim"

  46. Following input methods/engines are available in ports:

  47. chinese/ibus-chewing            Chewing engine for IBus
  48. chinese/ibus-pinyin             The PinYin input method
  49. japanese/ibus-anthy             Anthy engine for IBus
  50. japanese/ibus-mozc              Mozc engine for IBus
  51. japanese/ibus-skk               SKK engine for IBus
  52. korean/ibus-hangul              Hangul engine for IBus
  53. textproc/ibus-kmfl              KMFL IMEngine for IBus framework
  54. textproc/ibus-m17n              The m17n IMEngine for IBus framework
  55. textproc/ibus-table             Table based IM framework for IBus

  56. and QT4 input method module, textproc/ibus-qt.

  57. If ibus cannot start or the panel does not appear, please ensure
  58. that you are using up-to-date python.
  59. There's a bug in python 2.5, which may prevent the panel from appearing.
  60. -------------------------------------------------------------------
  61. # vim ~/.xinitrc
  62. #!/bin/sh
  63. /usr/local/bin/ibus-daemon --xim -d    # 确保比xfce提前运行!
  64. /usr/local/bin/startxfce4
  65. :wq

  66. # vim ~/.cshrc
  67. setenv XIM ibus
  68. setenv GTK_IM_MODULE ibus
  69. setenv QT_IM_MODULE xim
  70. setenv XMODIFIERS @im=ibus
  71. setenv XIM_PROGRAM ibus-daemon
  72. setenv XIM_ARGS "--daemonize --xim"
  73. :wq
复制代码
PS:
目前运行fcitx总是时不时的无法使用,切换到scim或者ibus没有任何问题!
这里所说不能使用是,无法进行输入操作! 悲剧。。O_o

论坛徽章:
0
115 [报告]
发表于 2013-05-04 13:59 |只看该作者
freebsd在不能联网的情况下就没有办法安装软件吗? 非要 make install clean 吗? 什么东西,在官网上下载的package
都不能用,还有什么能用的。

论坛徽章:
0
114 [报告]
发表于 2013-05-04 13:57 |只看该作者
为什么我设置了本地话语言  但是还是不支持中文?本地化语言什么意思,还有就是我在ftp下载了一个pinyin的那个package包,但是安装的时候说缺少很多文件,真是搞不懂,这个官网的ftp上边那个package包不是缺少文件的。

论坛徽章:
0
113 [报告]
发表于 2013-04-25 09:38 |只看该作者
看了,没什么内容。

论坛徽章:
0
112 [报告]
发表于 2013-04-08 23:49 |只看该作者
要顶的啊,楼主辛苦了,谢谢

论坛徽章:
0
111 [报告]
发表于 2013-04-03 01:09 |只看该作者
太强大了!LZ辛苦了!

论坛徽章:
12
寅虎
日期:2013-12-04 20:37:4915-16赛季CBA联赛之广东
日期:2017-08-22 19:23:1215-16赛季CBA联赛之上海
日期:2016-06-18 23:05:05操作系统版块每日发帖之星
日期:2016-06-06 06:20:00操作系统版块每日发帖之星
日期:2016-06-05 06:20:00操作系统版块每日发帖之星
日期:2016-06-03 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之巴勒斯坦
日期:2015-02-10 21:38:08卯兔
日期:2014-10-31 20:42:23申猴
日期:2014-06-11 17:15:10处女座
日期:2014-05-22 09:00:1815-16赛季CBA联赛之广夏
日期:2017-09-25 23:37:46
110 [报告]
发表于 2013-01-12 02:42 |只看该作者
刚才编译 google-earth 也直接报错了。
  1. ===>  google-earth-5.2.1.1588_1,3 is marked as broken: seems to crash on >= 9.x/amd64: http://www.freebsd.org/cgi/query-pr.cgi?pr=160422.
  2. *** [install] Error code 1
复制代码
我有点不明白 FreeBSD 的新版本发布标准,既然已经明确标注为 broken 了。那么为什么新版本不等这些问题都解决了再发布呢? 前边三个软件也是直接编译不通过。

FreeBSD 的软件是有专门的小组成员在负责维护,还是等待志愿者提交 patch?

论坛徽章:
12
寅虎
日期:2013-12-04 20:37:4915-16赛季CBA联赛之广东
日期:2017-08-22 19:23:1215-16赛季CBA联赛之上海
日期:2016-06-18 23:05:05操作系统版块每日发帖之星
日期:2016-06-06 06:20:00操作系统版块每日发帖之星
日期:2016-06-05 06:20:00操作系统版块每日发帖之星
日期:2016-06-03 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之巴勒斯坦
日期:2015-02-10 21:38:08卯兔
日期:2014-10-31 20:42:23申猴
日期:2014-06-11 17:15:10处女座
日期:2014-05-22 09:00:1815-16赛季CBA联赛之广夏
日期:2017-09-25 23:37:46
109 [报告]
发表于 2013-01-11 00:23 |只看该作者
如果遇到编译不过的情况,大家一般都是如何处理?等ports自己更新吗?

我现在64位9.1上边,遇到三个软件编译不过(ports已经更新)

一个是 haskell( /usr/ports/lang/ghc ) : 各种warning,最后就挂了。

一个是 scilab ( /usr/ports/math/scilab ):  No rule to make target `/usr/ports/java/openjdk6/work/hotspot/src/cpu/amd64/vm/x86_64.ad', needed by `../generated/adfiles/bsd_x86_64.ad'.  Stop.  看起来像是和 java 有关?

另外一个是 labplot ( /usr/ports/math/labplot ):  ./.libs/libLabPlot.so: undefined reference to `Rf_pythag'  

论坛徽章:
0
108 [报告]
发表于 2012-12-31 14:37 |只看该作者
mark一个,以后常看看。

论坛徽章:
12
寅虎
日期:2013-12-04 20:37:4915-16赛季CBA联赛之广东
日期:2017-08-22 19:23:1215-16赛季CBA联赛之上海
日期:2016-06-18 23:05:05操作系统版块每日发帖之星
日期:2016-06-06 06:20:00操作系统版块每日发帖之星
日期:2016-06-05 06:20:00操作系统版块每日发帖之星
日期:2016-06-03 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之巴勒斯坦
日期:2015-02-10 21:38:08卯兔
日期:2014-10-31 20:42:23申猴
日期:2014-06-11 17:15:10处女座
日期:2014-05-22 09:00:1815-16赛季CBA联赛之广夏
日期:2017-09-25 23:37:46
107 [报告]
发表于 2012-12-22 20:49 |只看该作者
回复 106# ulovko

163和hk的,平均下载速度在200k+,这个应该不慢了吧。

唔。。。明白了。应该是因为我每个跳出来的选项都选全了,并且都进行了安装,所以一路上啥都装了一遍。




   
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP