FreeBSD 8.0-RELEASE-i386 + IBM ThinkPad X32

下列,添加到 /etc/rc.conf:
hald_enable=”YES”
dbus_enable=”YES”

PORT安装Xorg,KDE是很慢的,所以用CD来装,没有光驱怎么办?虚拟光驱吧,先下载 8.0-RELEASE-i386-dvd1.iso 到WinXP的分区中,然后虚拟。

# mkdir /mnt/fat32
# mount_msdosfs /dev/ad0s6 /mnt/fat32

fat32、ntfs、cd9660分区中文文件名的问题。以前中文目录有gbfs port支持,现在无需安装gbfs即可实现fat32分区中文文件名的显示。方法是在执行mount_msdosfs时加载-L zh_CN.eucCN的参数,如:
mount_msdosfs -L zh_CN.eucCN /dev/ad0s1 /mnt/disk

对于ntfs及cd9660格式,则用另一个参数-C gbk,如:
mount_cd9660 -C gbk /dev/acd0 /cdrom
mount_ntfs -C gbk /dev/ad0s1 /mnt/win

FreeBSD里的逻辑分区是从ad0s5开始的,因为支持4个主分区,即使只有一个主分区,也是从ad0s5开始的。

# mkdir /mnt/cdrom
# mdconfig -a -t vnode -f /mnt/fat32/8.0-RELEASE-i386-dvd1.iso -u 1
# mount_cd9660 /dev/md1 /mnt/cdrom

# sysinstall

Configuration->packages->选择7 File System(/mnt/cdrom)->进入x11->找xorg->选中->install
Configuration->packages->选择7 File System(/mnt/cdrom)->进入KDE->找kde->选中->install

配置Xorg:

# Xorg -configure
# Xorg -config xorg.conf.new
# cp xorg.conf.new /etc/X11/xorg.conf

# cd /usr/ports/chinese/kcfonts && make install clean
# cd /usr/ports/chinese/arphicttf && make install clean
# cd /usr/ports/chinese/kde4-l10n-zh_CN && make install clean

# cd /usr/ports/www/firefox3 && make install clean
# cd /usr/ports/www/firefox3-i18n && make install clean

# cd /usr/ports/chinese/scim-pinyin/ && make install clean
# ee ~/.cshrc
setenv LANG zh_CN.eucCN
setenv LC_CTYPE zh_CN.eucCN
setenv XMODIFIERS @im=SCIM
setenv GTK_IM_MODULE scim
# echo "exec /usr/local/bin/scim &" >> ~/.xinitrc
# echo "exec /usr/local/kde4/bin/startkde" >> ~/.xinitrc
# startx

这样 FreeBSD8.0 KDE4 中文桌面就安装完毕了。可以和 FreeBSD 7.0 参考,基本差不多。

6 Comments

  • 我想问一下的就是:把KDM加到ttyv8启动之后如何把它改为中文的?
    我在命令行下用startx启动是显示中文的,用户的cshrc也已经设置为zh_CN.eucCN
    期待回答!

  • terence

    我在XP下用VM安装BSD8.0 安完Xorg和Kde后 运行Xorg -config xorg.conf.new
    就一直黑屏了
    cp xorg.conf.new /etc/X11/xorg.conf
    startx 也是文本 鼠标键盘都动不了

  • 王炜

    VM我没有用过不熟,试一试修改下 /etc/X11/xorg.conf 配置文件

  • diao

    在FreeBSD8里可以实现vpnc+safeword token拔号到cisco服务器吗?我用pcf2vpnc做好了vpnc.conf后用vpnc拔号,无反应,只显示no response from targe.

    pcf文件的内容如下:
    [main]

    Description=

    Host=12.104.XXX.XX

    AuthType=1

    GroupName=Pco2Factor

    GroupPwd=

    enc_GroupPwd=51B009208E74B9BD79DC18748DFDA572D676E0310B52E9A00A380C780576D216531AC1F112CA40EB37EC5D639BEFC6D967E7605E35F5E3AC

    EnableISPConnect=0

    ISPConnectType=0

    ISPConnect=

    ISPPhonebook=

    ISPCommand=

    Username=

    SaveUserPassword=0

    UserPassword=

    enc_UserPassword=

    NTDomain=

    EnableBackup=1

    BackupServer=12.11.XXX,XXX,62.200.XXX.XX,119.75.XXX.XX

    EnableMSLogon=1

    MSLogonType=0

    EnableNat=1

    TunnelingMode=0

    TcpTunnelingPort=10000

    CertStore=0

    CertName=

    CertPath=

    CertSubjectName=

    CertSerialHash=00000000000000000000000000000000

    SendCertChain=0

    PeerTimeout=90

    EnableLocalLAN=0

    pcf2vpnc后,vpnc.conf的内容如下:

    ## generated by pcf2vpnc
    IPSec ID Pco2Factor
    IPSec gateway 12.104.XXX.XX
    IPSec secret Fact@rLD4P
    Xauth username diao

    IKE Authmode psk

    ## To add your username and password,
    ## use the following lines:
    # Xauth username
    # Xauth password

    还有没有差什么没有设置啊?请赐教!!

    谢谢!!

  • 王炜

    这我没有配置过,不清楚,对不起!

  • People deserve very good life and home loans or short term loan would make it much better. Just because freedom bases on money.

Leave a Reply