安装Xorg

cd /usr/ports/x11/xorg-minimal
make install clean

pkg install xorg-minimal

如果最小化安装xorg-server,startx启动测试X,需要安装twm、xclock、xterm等。

配置Xorg

快速启动测试X

By default, Xorg usesHAL to autodetect keyboards and mice. The sysutils/hal and devel/dbus ports are automatically installed as dependencies of x11/xorg, but must be enabled by adding these entries to/etc/rc.conf:

  • Check if HAL is used by the X server
pkg info xorg-server | grep HAL
  • If HAL is on, enable needed services by adding two entries to /etc/rc.conf. Then start the services:

hald_enable="YES"

dbus_enable="YES"

service hald start
service dbus start
  • If the output shows HAL is off,Rename or delete old versions of xorg.conf:
mv /etc/X11/xorg.conf ~/xorg.conf.etc
mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
  • Once the services have been started, check whether Xorg auto-configures itself by typing:
Xorg -configure
  • Start the X system:
startx
  • Once the test is successful, copy the configuration file to /etc/X11/xorg.conf:
cp xorg.conf.new /etc/X11/xorg.conf
使用字体
  • 安装文泉驿开源字体
pkg install wqy-fonts
  • /etc/X11/xorg.conf里面的Section “Files”小节加入:

FontPath "/usr/local/lib/X11/fonts/wqy"

安装awesome

pkg install awesome
cp /usr/local/etc/xdg/awesome/rc.lua .config/awesome/
echo "exec awesome" > .xinitrc

安装输入法

pkg install zh-fcitx
pkg install zh-fcitx-configtool

设置XMODIFIERS变量,gtk、qt支持:

  • csh/tcsh

setenv XMODIFIERS @im=fcitx

setenv GTK_IM_MODULE fcitx

setenv GTK3_IM_MODULE ximcp

  • sh/bash

export XMODIFIERS='@im=fcitx'

export GTK_IM_MODULE=fcitx

export GTK3_IM_MODULE=xim

For Qt4 programs, we recommend you to use:

qtconfig-qt4: /usr/ports/misc/qt4-qtconfig

instead of to manually set QT4_IM_MODULE.

To start fcitx with your desktop, just

cp /usr/local/share/applications/fcitx.desktop ~/.config/autostart/

或在.xinitrc中添加

fcitx &

参考:http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config-quick-start.html

FreeBSD安装桌面环境的更多相关文章

  1. RHEL 6.6安装桌面环境GNOME

    在测试服务器(Red Hat Enterprise Linux Server release 6.6)需要安装桌面系统环境,于是选择GNOME桌面环境安装. 一:检查系统的运行级别以及是否安装了桌面环 ...

  2. linux Centos 6.5 安装桌面环境GNOME

    在某种场合之下,我们使用的Linux还是要选择安装桌面环境的,所以在这里介绍一下如何给没有安装桌面环境的系统安装桌面环境.以Centos 6.5 为例演示一下如何安装桌面环境. 工具/原料 Linux ...

  3. 【转】linux Centos 6.5 安装桌面环境GNOME

    在某种场合之下,我们使用的Linux还是要选择安装桌面环境的,所以在这里介绍一下如何给没有安装桌面环境的系统安装桌面环境. 以Centos 6.5 为例演示一下如何安装桌面环境. 一.首先查看系统的运 ...

  4. CentOS 中 YUM 安装桌面环境

    CentOS 作为服务器的操作系统是很常见的,但是因为需要稳定而没有很时髦的更新,所以很少做为桌面环境.在服务器上通常不需要安装桌面环境,最小化地安装 CentOS(也就是 minimal CentO ...

  5. windows 10中的ubuntu子系统安装桌面环境的方法

    windows 10中的ubuntu子系统安装桌面环境的方法 (How to install Ubuntu-desktop in windows 10 Subsystem for Linux) 转载 ...

  6. Redhat 7.0 安装桌面环境

    1.安装桌面环境组件 #yum groupinstall "Server with GUI" 2.切换到图形界面 #startx 3.设置启动模式为图形界面 #rm /etc/sy ...

  7. CentOS7安装桌面环境以及中文语言支持

    CentOS7 操作系统 http://public-yum.oracle.com/oracle-linux-isos.html ================================= 1 ...

  8. debian/ubuntu安装桌面环境

    apt-get install xorg apt-get install gnome 然后startx ubuntu 安装Gnome桌面 1.安装全部桌面环境,其实Ubuntu系列桌面实际上有几种桌面 ...

  9. CentOS 7 安装桌面环境

    首先进入要使用root权限: 使用 yum grouplist可以看现在的安装情况以及支持哪些软件包. 使用 yum groupinstall "GNOME Desktop" &q ...

随机推荐

  1. Spring MVC中页面向后台传值的几种方式

    在学习 Spring Mvc 过程中,有必要来先了解几个关键参数:   @Controller:         在类上注解,则此类将编程一个控制器,在项目启动 Spring 将自动扫描此类,并进行对 ...

  2. html5精品教程

    链接:http://pan.baidu.com/s/1ntr7yJ3 密码:7qvz链接:http://pan.baidu.com/s/1c0haxZM 密码:paok

  3. 学习smail注入遇到的坑

    1.将需要被反编译的apk包解开之后,找到MainActivity,然后在OnCreate中添加需要加入注入的smail代码: Java代码: /** * 获取Android id * * @para ...

  4. 1、API

    基本API sectionsColor:['green','orange','red','grey'],//为每一层设置背景颜色 controlArrows:true,//是否显示幻灯片的左右按钮 v ...

  5. ecshop 分页小记

    ecshop 分页是ajax请求的,必须在主文件里有个 act = query 处理,分页会请求这个act <?php //获取列表 if($_REQUEST['act']=='list'){ ...

  6. JavaScript-Curry

    Currying allows you to easily create custom functions by partially invoking an existing function. He ...

  7. JS禁用右键,禁用打印,防止另存为,IE浏览器识别(转载)

    oncontextmenu="window.event.returnValue=false" style="overflow-y: hidden; overflow-x: ...

  8. c# 索引器方法

    索引器方法允许我们构建能够以类似访问数组的语法来访问内部子类型的自定义类型 在语法上索引器方法和属性的定义很类似,一样是使用get,set,不同的是索引器是使用this[]创建的. 一个简单的索引器代 ...

  9. php正则匹配中文

    <?php $str = '你是我的+****xiaopingguo _ 23947237 _+冠军终归这里'; preg_match_all('/[\x{4e00}-\x{9fa5}A-Za- ...

  10. python获取

    def anc():pass print anc.__name__ def timeit(func): def run(*argv): print "this function name i ...