安装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. JDK各版本新增的主要特性

    JDK1.5新特性: 1.自动装箱与拆箱: 2.枚举 3.静态导入,如:import staticjava.lang.System.out 4.可变参数(Varargs) 5.内省(Introspec ...

  2. ElasticSearch(8)-分布式搜索

    分布式搜索的执行方式 在继续之前,我们将绕道讲一下搜索是如何在分布式环境中执行的. 它比我们之前讲的基础的增删改查(create-read-update-delete ,CRUD)请求要复杂一些. 注 ...

  3. 安装VMWare WorkStation 10 异常【 Failed to create the requested registry keyKey:Installer Error: 1021】

    下载了新的workstation 10,在安装的时候出现了异常Failed to create the requested registry keyKey:Installer Error: 1021. ...

  4. Asp.Net BulletedList使用及详解

    BulletedList使用及详解   文章来源:www.cnblogs.com/xiohao/archive/2013/10/09/3359263.html BulletedList是一个让你轻松在 ...

  5. 关于Java集合

    之前关于java集合认识,虽然理解,但是总是忘记关键点,今明两天写一篇关于集合的随笔

  6. android自定义控件,其三个父类构造方法有什么区别

    android自定义控件时,通常需要重写父类构造函数.这三个够找函数具体啥时调用? public View (Context context) 是在java代码创建视图的时候被调用,如果是从xml填充 ...

  7. BigDecimal-解决商业计算

    1.String to BigDecimal String amtStr = "1234.56"; BigDecimal amtBD = new BigDecimal(amtStr ...

  8. LINUX利用Speedtest测速

    那么远程服务器呢?要知道大多数远程服务器是没有浏览器可以打开web页面的.用浏览器打开网页测速的瓶颈就在此,你不能按计划的对服务器进行定期的常规测试.这时需要到一个名为Speedtest-cli的软件 ...

  9. centos7 安装openvswitch

    安装 1.安装依赖包:yum -y install openssl-devel wget kernel-devel 2.安装开发工具:yum groupinstall "Developmen ...

  10. hibernate java.sql.SQLException

    异常:java.sql.SQLException oracle.net.ns.NetException java.net.ConnectException 提示:The Network Adapter ...