源里的fcitx版本太低了,要安装fcitx3.5时要unmask
如果没有autounmask请先emerge autounmask
autounmask app-i18n/fcitx-3.5_pre070703
然后再emerge fcitx
如果不能正常显示中文
需要添加USE=“truetype”…
源里的fcitx版本太低了,要安装fcitx3.5时要unmask
如果没有autounmask请先emerge autounmask
autounmask app-i18n/fcitx-3.5_pre070703
然后再emerge fcitx
如果不能正常显示中文
需要添加USE=“truetype”…
Gentoo下emerge用法
避免升级覆盖掉版本更高的软件
emerge -uU world
emerge –update –upgradeonly world
查找名称包含mozilla的包
emerge -s mozilla
emerge search mozilla
查找描述包含mozilla
emerge -S mozilla
emerge –searchdesc mozilla
使用本地编好的包,没有就下源码(尽量避免编译)
emerge -k mozilla
emerge –usepkg mozilla
只使用本地编好的,否则不安装(绝对不编译,所有依赖的包都有binary才装)
emerge -K mozilla
emerge –usepkgonly mozilla
卸载
emerge -C …
cat /etc/X11/xorg.conf
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see …
要让audacious能够播放mp3需要加入mp3 wma wmv mpd USE
其中mpd很重要如果没有mpd USE就不能播放mp3了
USE=”mp3 wma wmv mpd” emerge audacious
安装mplayer
cat emergemplayer.sh
#!/bin/sh
USE=”aac real win32codecs -ipv6″ emerge mplayer
emerge mplayerplug-in
如果双击提示找不到文件时,
将Exec=gmplayer %U改为
Exec=gmplayer %f或者去掉%U
cat /usr/share/applications/mplayer.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=MPlayer
GenericName=Multimedia player
Comment=Multimedia …
在ubuntu上安装drcom很简单
只要make&&make install就行了
但在gentoo却遇到了很多问题 ,先是不能编译,少了什么变量,security_ops,然后到网上搜,好不容易找到了一个解决方法,(当时我的内核是2.6.22,后来才更新到2.6.24)
在网友zrx550 http://hi.baidu.com/z%5Fr%5Fx那看到这篇文章
----------
linux下的drcom是在2.6的内核中开发的,用到了<linux/security.h>中的security_ops。>但是这个 EXPORT_SYMBOL 在2.6.24的内核中被取消了,导致drcom不能被成功的编译。随之
而来的问题就是新内核在需要drcom的网络环境中不能上网了。就这个问题我请教了开源版>本drcom开发者之一的Wheelz。目前最简单的办法只能修改内核,重新编译。针对2.6.24的>内核,具体办法如下:
1) 在内核的security/security.c文件的最后加上EXPORT_SYMBOL(security_ops);
2) 重新编译一下内核。
3) drcom-1.3.7/kmod/proto.c在#include <linux/security.h>后面加上一句:
extern struct security_operations *security_ops;
4)编译安装drcom。
但却始终不起作用,编译了好几次内核,始终没用,后来在.config 中加入
先 grep SECURITY .config 然后vim .config
CONFIG_SECURITY=y
CONFIG_SECURITY_NETWORK=y
前几次编译都不成功,好像编译时重新配置内核,立马^C,
然后又一次次偿试,终于可以了。
到这里我发现了一个问题,一般情况了我重新编译内核都不会
make clean 而这次编译了7分钟,所以我觉得它应该将内核重新编译了一遍,以前编译时只要很短的时间,特别是改动很少的时候,因为它没有全部重新编译,只是编译了那些配置改变了的部分,而当它们的依赖关系比较严重时,系统就会自动全部重新编译,所以以后当内核改0动比较大时,最好先make …
# eclean-dist -d
-d 表示仅保留最少的源码包 – 仅包含目前系统中安装的那些, 以备 rebuild 某个软件时使用.
为了安全, 可以先加 -p 选项看看都有哪些包会被清除:
代码: |
# eclean-dist -p -d |
设置系统时钟的技巧
这是一个小麻烦. 可能不少人遇到过, 系统时间怎么折腾都有毛病. 下面这些步骤我都觉得有点郁闷, 不过, 按这些步骤弄完, 系统时间应该就正常了. 如果你有更好的解决方法, 一定要记得共享哦 首先我们按手册里的方法把时区设置好, 这里用了 Chongqing, 没关系, 全中国都是一样的时间:
代码: |
# ln -sf /usr/share/zoneinfo/Asia/Chongqing /etc/localtime # date |
date 命令这时给出的时间肯定不对. 为什么? 因为系统启动时默认的系统时间 (注意和硬件时间分开) 是 UTC 的 (也就是格林威治标准时间 – 说错没??), 在我们把 localtime 指向 Chongqing 之后, 系统就以当前的 …
Gentoo桌面文档资源
http://www.gentoo-cn.org/doc/zh_cn/index.xml?catid=desktop
gnome配置文档:
在配置xorg.conf时可以用xorgcfg xorgconfig 这两个命令,
但我是直接将ubuntu中的xorg.conf copy过来的,因为硬件是一样的,所以配置也就应该差不多。事实说明这样确实管用,
http://www.gentoo-cn.org/doc/zh_cn/gnome-config.xml .
/etc/make.conf中USE范例
USE="-qt3 -qt4 -arts -kde X dbus gtk gnome hal avahi"
您可以添加brandingUSE标记来获得一个漂亮的“Gentoo牌”启动画面,取代默认的Gnome启动画面:
echo "gnome-base/gnome-session branding" >> /etc/portage/package.use
安装GNOME emerge gnome 遇到依赖问题时可以先跳过去
emerge --skipfirst gnome
更新环境变量 # env-update && source /etc/profile…
首先要配置内核
打开内核模块加载的支持
Loadable module support ---> [*] Enable loadable module support
你还要在内核中打开Memory Type Range Register
Processor and Features ---> [*] MTRR (Memory Type Range Register) suppor
打开agpgart支持
Device Drivers ---> Character devices ---> <*> /dev/agpgart (AGP Support)
去掉内核中的驱动
Device Drivers…