FreeBSD图形界面安装
2013-08-01 17:19
183 查看
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
即可进入图形界面
#linux/unix
以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
即可进入图形界面
#linux/unix
相关文章推荐
- freebsd安装和图形界面安装
- Windows下不安装FreeBSD查看其源码的方法
- 在FreeBSD下编译安装Mangos
- freeBSD上安装Webmin
- FreeBSD学习笔记12-pureftpd使用详解(1)-安装、配置、实现匿名登录
- FreeBSD学习笔记17-FreeBSD下安装MySQL数据库
- Vmware安装Freebsd配置vim进行UNIX环境编程。
- oracle 安装使用xmanager/Xming 图形界面
- Freebsd中mysql安装及使用笔记
- Ubuntu server版本默认没有安装图形界面
- 怎样在 CentOS 7.0 上安装图形界面和安装、配置 VNC 服务器
- FreeBSD安装Ports
- freebsd 安装openjdk+tomcat
- FreeBSD学习笔记25-安装DHCP服务
- freebsd 安装 phpredis
- freebsd下php53extension安装出错
- FreeBSD 安装 ports
- Ubuntu上安装和使用SSH,Xming+PuTTY在Windows下远程Linux主机使用图形界面的程序
- 在WMWare 安装Redhat Linux 6.4 basic server版本(没有图形界面)网络连接
- 我的 FREEBSD 4.8 安装手记