电脑技术学习

freebsd 6.2 安装配置笔记

dn001

  -q add 01800 allow tcp from any to me 22 in via vr0 setup limit src-addr 2

  保存退出

  ++中文字体

  将xp上simsun.ttc tahoma.ttf拷至/usr/X11R6/lib/X11/fonts/TTF/,并改扩展名为ttf

  fc-cache -fv

  ++配置fcitx

  cd /usr/ports/chinese/fcitx

  make install clean

  在~/.profile 文件中加以下三行 #因我用的是bash

  export LANG="zh_CN.eucCN"

  export LC_CTYPE="zh_CN.eucCN"

  export XMODIFIERS=’@im=fcitx’

  ++vim配置

  cd /usr/ports/editors/vim && make install clean #安装vim

  cp /usr/local/share/vim/vim70/vimrc_example.vim ~/.vimrc

  编辑.vimrc,注释掉" set nocompatible行

  ++安装ntfs写支持

  安装 Kernel source

  手工下载软件包

  http://ftp.lv.FreeBSD.org/pub/FreeBSD/ports/packages/Latest/fusefs-ntfs.tbz

  pkg_add path/fusefs-ntfs.tbz

  ++JAVA环境安装

  1.open http://www.sun.com/software/java2/download.HTML, download the SCSL Source file,jdk-1_5_0-src-scsl.zip and the SCSL Binaries file, jdk-1_5_0-bin-scsl.zip .

  2.In addition, please download the patchset, bsd-jdk15-patches-3.tar.bz2, from http://www.eyesbeyond.com/freebsddom/java/jdk15.html.

  3.manually fetch the J2SE SDK self-extracting file for the Linux platform (j2sdk-1_4_2_12-linux-i586.bin) from http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_12-oth-JPR&SiteId=JSC&TransactionId=noreg

  4.Please place the downloaded file(s) in /usr/ports/distfiles

  pkg_add -rK m4 

  pkg_add -rK zip

  ++vsftpd配置

  编辑 /usr/local/etc/vsftpd.conf加入三行

  listen=YES

  ftp_username=ftp

  local_enable=YES

  anon_upload_enable=YES

  anon_mkdir_write_enable=YES

  write_enable=YES

  ++linux下fdisk工具

  pkg_add -rK linuxfdisk

  ===其它===

  ++挂设备

  mount_cd9660 -C gbk /dev/acd0 /mnt/cdrom #加-C eucCN为了显示中文文件名

  mount_msDosfs #fat

  mount_ntfs   #ntfs

  ++如何以关键字搜寻 ports

  cd /usr/ports/

  make search key=ldap

  make search name=ldap #知道软件名用这个

  make fetch-recursive

标签: