Archive for 03月, 2008

Gentoo体验之路之gsopcast安装

星期四, 03月 27th, 2008

先下载源码:新出的0.4.0版

http://lianwei3.googlepages.com/home2

参考里面的INSTALL

./configuration

make&&make install

在/usr/local/ bin中

ls /usr/local/bin/
drcomc drcomd gsopcast .keep sp-sc

下载sp-sc解压cp到/usr/local/bin就可以了

频道地址填

http://202.71.98.177/gchlxml

以前将列表下到本地,用自己的FTP也可以,不知道为什么,这个新版本不行!~~!

root不能直接启动,要将gsopcast ln到/sbin中

ln -s /usr/local/bin/gsopcast /sbin

Gentoo体验之路之fcitx安装

星期四, 03月 27th, 2008

源里的fcitx版本太低了,要安装fcitx3.5时要unmask

如果没有autounmask请先emerge autounmask

autounmask app-i18n/fcitx-3.5_pre070703

然后再emerge fcitx

如果不能正常显示中文

需要添加USE=“truetype”

Gentoo体验之路之emerge用法

星期一, 03月 24th, 2008

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 mozilla
emerge unmerge mozilla

升级portage树

emerge sync

下载snapshot包来完成sync
emerge-webrsync

查看已安装包的changelog

emerge -pl mozilla
emerge –pretend –changelog mozilla

查看依赖关系(这个包还没装)
(–pretend保证这一次操作实际上不做任何事情,可以跟任何options组合)
emerge -p mozilla
emerge –pretend mozilla

只下载某个软件的源码(以及它所依赖的)

emerge -f mozilla
emerge –fetchonly mozilla

查看从哪下的源码

emerge -fp mozilla

安装指定版本号的

emerge “<mozilla-1.6″
emerge “=………..”
…….”>………..”

emerge -k “<mozilla-1.6″…..

从网上下binary包来装

emerge -g mozilla
emerge –getbinpkg mozilla
(注意,实际上没有任何binary包存在于官方的mirror中
所以这个基本上是无用,在manpage也没有出现。除非自
己用livecd来setup一个这样的站点。不知道以后会不会
出现这样的mirror。gentoo.org论坛上似乎也有讨论这个。)

查看binary包依赖

emerge -gp mozilla
emrege –getbinpkg –pretend mozilla

查看依赖关系(这个包已经装了)

emerge -ep opera
emerge –emptytree –pretend opera
(不用pretend会重新编译这所有依赖的包,glibc因为安全关系没有列出)

不使用依赖关系安装软件

emerge -O opera
emerge –nodeps opera

只安装其依赖的软件
emerge -o opera
emerge –onlydeps opera

升级软件
emerge -u opera
emerge –update opera

升级系统软件

emerge -u system

升级整个系统

emerge -u world

避免升级覆盖掉版本更高的软件

emerge -uU world
emerge –update –upgradeonly world

查看可用的USE参数

emerge -pv opera

emerge -uD –newuse world

emerge -uD –newuse system

gentoo 备份之xorg.conf,make.conf,.config

星期一, 03月 24th, 2008

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 the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section “Files”
EndSection

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105″
Option “XkbLayout” “us”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2″
Option “ZAxisMapping” “4 5″
Option “Emulate3Buttons” “true”
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “stylus”
Option “Device” “/dev/input/wacom”
Option “Type” “stylus”
Option “ForceDevice” “ISDV4″# Tablet PC ONLY
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “eraser”
Option “Device” “/dev/input/wacom”
Option “Type” “eraser”
Option “ForceDevice” “ISDV4″# Tablet PC ONLY
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “cursor”
Option “Device” “/dev/input/wacom”
Option “Type” “cursor”
Option “ForceDevice” “ISDV4″# Tablet PC ONLY
EndSection

Section “Device”
Identifier “nVidia Corporation G70 [GeForce 7600 GS]”
Driver “nvidia”
Busid “PCI:6:0:0″
Option “AddARGBVisuals” “True”
Option “AddARGBGLXVisuals” “True”
Option “NoLogo” “false”
EndSection

Section “Monitor”
Identifier “Philips 170S”
Option “DPMS”
EndSection

Section “Screen”
Identifier “Default Screen”
Device “nVidia Corporation G70 [GeForce 7600 GS]”
Monitor “Philips 170S”
Defaultdepth 24
SubSection “Display”
Modes “1280×1024″ “1280×960″ “1152×864″ “1024×768″ “832×624″ “800×600″ “720×400″ “640×480″
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Default Layout”
screen “Default Screen”
Inputdevice “Generic Keyboard”
Inputdevice “Configured Mouse”

# Uncomment if you have a wacom tablet
# InputDevice “stylus” “SendCoreEvents”
# InputDevice “cursor” “SendCoreEvents”
# InputDevice “eraser” “SendCoreEvents”
EndSection
Section “Module”
Load “glx”
Load “extmod”
EndSection

cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
HTTP_PROXY=”210.29.96.35:80″
CFLAGS=”-O2 -march=i686 -pipe”
CXXFLAGS=”${CFLAGS}”
# This should not be changed unless you know exactly what you are doing. You
# should probably be using a different stage, instead.
LINGUAS=”en”
CHOST=”i686-pc-linux-gnu”
SYNC=”rsync://ftp.tsinghua.edu.cn/pub/mirror/gentoo/gentoo-portage”
GENTOO_MIRRORS=”http://ftp3.tsinghua.edu.cn/pub/mirror/gentoo/ http://ftp.sjtu.edu.cn/gentoo”
USE=”pdf xv dvd opengl xv png real nv jpeg win32codecs mp3 nvidia wma hal avahi xvmc alsa midi -debug -test hda-intel X nptl -ipv6 -fortran unicode svg dbus -kde -qt3 -qt4 -arts -eds gnome gtk firefox”
CCACHE_SIZE=”2G”
ALSA_CARDS=”Intel HD Audio”
VIDEO_CARDS=”nvidia”
cat /usr/src/linux/.config |wgetpaste
Your paste can be seen here: http://rafb.net/p/OsiAOx67.html

gentoo体验之路之mplayer audacious安装

星期一, 03月 24th, 2008

要让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 player
Comment[de]=Multimedia-Player
Comment[es]=Reproductor multimedia
Comment[fr]=Lecteur multimédia
Comment[it]=Lettore multimediale
Icon=mplayer.xpm
TryExec=gmplayer
Exec=gmplayer %f
Terminal=false
Categories=GTK;AudioVideo;Audio;Video;Player;TV;
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska;

Recent Posts:
  1. 博客搬迁了~
  2. Android live cd试用及介绍
  3. Android Browser Introduction 2:结构图
  4. Android Browser Introduction 1
  5. 从20080707--20090707
  6. Rate My Life Quiz!
  7. Registration
  8. 在公司电脑装上了linux,还存在诸多问题
  9. NND,苏州电信想钱想疯了,上网1.2元/时,强推天冀!!!
  10. google.com被及艾服达不溜了

Register Login