FreeBSD图形界面安装

本文详细介绍了在Linux环境下安装Xorg、配置Xorg、安装窗口管理软件、中文输入法等步骤,包括安装Xorg所需的硬盘空间要求、配置Xorg生成xorg.conf.new文件并编辑、安装窗口管理软件如fvwm、安装中文输入法fcitx以及如何使图形界面启动时自动启动fvwm和加载中文输入法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 安装Xorg
       以root身份执行
          1. cd /usr/ports/x11/xorg/
          2. make install clean
       这种安装方法需要硬盘有4G的剩余空间放编译过程的临时文件。
  2.   配置Xorg
       以root身份执行
          1. cd ~
          2. Xorg -configure
       将会在/root/生成xorg.conf.new,然后copy至配置文件目录并编辑,执行
          1. cp xorg.conf.new /etc/X11/xorg.conf
       为了使图形界面显示Windows的宋体,把Windows下Fonts目录下的simsun.ttc复制至/usr/X11R6/lib/X11/fonts/TrueType/。然后安装ttfm并添加宋体到系统,执行
          1. cd /usr/ports/chinese/ttfm
          2. make install clean
          3. ttfm.sh --add simsun.ttc
          4. ee /etc/X11/xorg.conf

       在Files的Section里加上
          1. FontPath     "/usr/X11R6/lib/X11/fonts/TrueType"

       顺便在鼠标的Section里改为
          Section "InputDevice"
          Identifier "Mouse0"
          Driver "mouse"
          Option "Protocol" "Auto" #协议最好选这个
          Option "Buttons" "5" #我的是滚轮的
          Option "Device" "/dev/sysmouse" #设备一定要这个要不容易出现问题
          Option "ZAxisMapping" "4 5" #滚轮的 

    3.  安装窗口管理软件,我装的是fvwm

       以root身份执行
          1. cd /usr/ports/x11-wm/fvwm2/
          2. make install clean

       为了支持中文,还要安装fvwm2-i18n,执行
          1. cd /usr/ports/x11-wm/fvwm2-i18n/
          2. make install clean

       其实fvwm配置好了非常好用,推荐一个配置的教程: http://learn.tsinghua.edu.cn:8080/2001315450/fvwm_frame.html
    4.   安装中文输入法fcitx

       以root身份执行
          1. cd /usr/ports/chinese/fcitx/
          2. make install clean
          3. echo "setenv LANG zh_CN.eucCN" >> /etc/csh.cshrc
          4. echo "setenv LC_CTYPE zh_CN.eucCN >> /etc/csh.cshrc
          5. echo "setenv XMODIFIERS @im=fcitx" >> /etc/csh.cshrc

       为了使图形界面启动时自动启动fvwm,并且加载中文输入法,以日常账号执行
          1. echo "fcitx &" >> ~/.xinitrc
          2. echo "exec fvwm2" >> ~/.xinitrc
    5.

       至此图形界面安装完毕,只需以正常用户身份登陆后执行
          1. startx

       即可进入图形界面
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值