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 …
gentoo体验之路之mplayer audacious安装
要让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 …
drcom的安装之千辛万苦
在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 …
删除distfiles里面过期文件的方法
# 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安装输入法fcitx
Gentoo体验之安装gnome
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…
Gentoo体验之路这之显卡安装
首先要配置内核
打开内核模块加载的支持
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…
Gentoo体验之路
最近有时间,下了gentoo来体验一下。
看了安装相关文档:http://www.gentoo-cn.org/doc/zh_cn/index.xml
http://www.gentoo-cn.org/doc/zh_cn/index.xml?catid=install
然后找了个教育网,我这里也只有http://ftp.sjtu.edu.cn 下载比较快,
下载LiveCD:http://ftp.sjtu.edu.cn/gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso
也可以下载:http://ftp.sjtu.edu.cn/gentoo/releases/x86/2007.0/installcd/install-x86-minimal-2007.0-r1.iso
刚开始用minimal从硬盘安装,总是提示找不到 镜像文件,只好改用livecd了
硬盘安装方法:先将livecd解压到一个分区的根目录下,最好是fat32,(NTFS没试过 ),
然后用grub引导:
修改 menu.lst文件
title gentoo install
root (hd0,6)
kernel /isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz vga=791 splash=silent,theme:livecd-2006.1 CONSOLE=/dev/tty1 quiet
initrd /isolinux/gentoo.igz
boot
说明一下,我将livecd解压到XP下的F盘了,对应的是/dev/sda7,但root 里要减1,就是(hd0,6)了
接着就从livecd启动了:参考安装手册:
Gentoo Linux
…一个查看天气的脚本(修改自“大骨头”的)
weathertar.gz点这里下载:
./weather
然后直接输入城市名字
比如:上海
就行了
#!/bin/bash
#Copyright (c) 2007 bones7456 (bones7456@gmail.com)
#edited by percy(pengjianqing@sina.com)1/5/2007
#License: GPLv3
echo “please keyin the city code”
echo -n “city:”
read city
city=`grep “$city” ./city.txt |cut -d “-” -f1`
#城市代码,留空可自动检测(自动检测不一定精确),城市代码可在 http://weather.265.com 上查询,是个5位的数字
#city=
if …
