+ -
当前位置:首页 → 问答吧 → [solved,thx]几个小问题,望前人指点一下 ...

[solved,thx]几个小问题,望前人指点一下 ...

时间:2007-09-19

来源:互联网

gentoo 安装时间不长,ubuntu 下有些方便之处,或者说习惯想调出来,我装得是 gnome-light ..

1,) 怎么支持我的刻录机(nautilus 集成的那个)? , 内核部分我配置过了,能读盘 , scsi 也选了

2,) 我装了 tar , 以前 nautilus 双击 .tar .bz2 这样的后缀直接能解开,比较方便,想知道这怎么设置? 不是 nautilus-script

3,) 中文的 man 手册 , 乱码

代码:
iblicf@gentoo ~/readings/zh_CN1/man1 $ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8

alias cman='man -M /home/iblicf/readings/zh_CN1'

iblicf@gentoo ~/readings/zh_CN1/man1 $ enca mv.1
Universal transformation format 8 bits; UTF-8

iblicf@gentoo /etc $ grep NROFF man.conf
# NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
# causes problems, add the -c option to TROFF, NROFF, JNROFF.
#NROFF /usr/bin/nroff -Tascii -c -mandoc
NROFF /usr/bin/nroff -mandoc -c
JNROFF /usr/bin/groff -Tnippon -mandocj
4,) 面板上的音量调节, 只能 master , 双击 : "启动音量控制失败:执行子进程“gnome-volume-control”失败(没有那个文件或目录) "

代码:
gentoo etc # emerge -pv gnome-volume-control
These are the packages that would be merged, in order:

Calculating dependencies -
emerge: there are no ebuilds to satisfy "gnome-volume-control".
望指教 ..

作者: iblicf   发布时间: 2007-09-19

这个前人的话,一般都是指不在人世间的吧?

作者: hutigers   发布时间: 2007-09-20

第一个问题:
代码:
 $pquery --attr alldepends -m nautilus-cd-burner --max -v --raw
 * gnome-extra/nautilus-cd-burner-2.20.0
 repo: gnome
 description: CD and DVD writer plugin for Nautilus
 homepage: http://www.gnome.org/
 depends: 
 >=gnome-base/gnome-vfs-2.1.3.1
 >=dev-libs/glib-2.10
 >=x11-libs/gtk+-2.6
 >=gnome-base/libglade-2
 >=gnome-base/libgnome-2.14
 >=gnome-base/libgnomeui-2.14
 >=gnome-base/eel-2.14
 >=gnome-base/nautilus-2.16
 >=gnome-base/gconf-2
 >=gnome-base/gnome-mount-0.4
 >=sys-apps/hal-0.5.7
 >=dev-libs/dbus-glib-0.71
 cdr? ( virtual/cdrtools )
 dvdr? ( >=app-cdr/dvd+rw-tools-6.1 )
 sys-devel/gettext
 >=dev-util/pkgconfig-0.9
 >=dev-util/intltool-0.35
 >=sys-apps/sed-4
 rdepends: 
 >=gnome-base/gnome-vfs-2.1.3.1
 >=dev-libs/glib-2.10
 >=x11-libs/gtk+-2.6
 >=gnome-base/libglade-2
 >=gnome-base/libgnome-2.14
 >=gnome-base/libgnomeui-2.14
 >=gnome-base/eel-2.14
 >=gnome-base/nautilus-2.16
 >=gnome-base/gconf-2
 >=gnome-base/gnome-mount-0.4
 >=sys-apps/hal-0.5.7
 >=dev-libs/dbus-glib-0.71
 cdr? ( virtual/cdrtools )
 dvdr? ( >=app-cdr/dvd+rw-tools-6.1 )
 post_rdepends:
第二个问题,可能是nautilus script,gnome下还有个图形化工具
代码:
emerge file-roller -av
第三个问题,参见http://forums.gentoo.org/viewtopic-t-578180.html

第四个
代码:
# qfile gnome-volume-control
gnome-extra/gnome-media (/usr/bin/gnome-volume-control)
gnome-extra/gnome-media (/usr/share/gnome/help/gnome-volume-control)
所以 emerge gnome-media 先

作者: Blahster   发布时间: 2007-09-20

非常感谢,blahster , 真是 blade edge , 中文man 还有些问题,没关系了,我自己研究研究,

谢谢,谢谢

作者: iblicf   发布时间: 2007-09-20

中文man的问题我在楼上给的帖子里回过的,注意2条:
1. 最新的groff有bug,退回到groff-1.18.1.1
2. 修改man.conf文件,以支持UTF-8

作者: zhou3345   发布时间: 2007-09-20

groff -v
--------------------------------------------
代码:
iblicf@gentoo /etc $ groff -v
GNU groff version 1.18.1
Copyright (C) 2002 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

called subprograms:

GNU troff (groff) version 1.18.1
GNU grops (groff) version 1.18.1

/etc/man.conf
-------------------------------------------------------
代码:
TROFF /usr/bin/groff -Tps -mandoc
#NROFF /usr/bin/nroff -Tascii -c -mandoc
#NROFF /usr/bin/nroff -mandoc -c
NROFF /usr/bin/groff -S -Tlatin1 -mandoc
#TROFF /usr/local/bin/groff-utf8 -Tutf8 -mandoc
#NROFF /usr/local/bin/groff-utf8 -Tutf8 -mandoc
那个groff-utf8 号称真正 utf8支持,上边的我都试过,最好情况就是出 乱码+部分中文

man -d su
--------------------------------------------
代码:
Reading config file /etc/man.conf
Cannot open the message catalog "man" for locale "zh_CN.UTF-8"
(NLSPATH="<none>")

found man directory /usr/share/man
found man directory /usr/local/share/man
found man directory /usr/X11R6/man
found man directory /usr/local/man
found man directory /usr/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11R6/bin --> /usr/X11R6/man
found manpath map /usr/bin/X11 --> /usr/X11R6/man
found manpath map /usr/bin/mh --> /usr/share/man

using /usr/bin/less as pager

using /usr/bin/less -is as browser

using /bin/cat to dump HTML pages as text
adding /usr/local/share/man to manpath
adding /usr/share/man/zh_CN to manpath
adding /usr/share/man to manpath
adding /usr/share/binutils-data/i686-pc-linux-gnu/2.18/man to manpath
adding /usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man to manpath
will try to write /var/cache/man/zh_CN/cat1/su.1.bz2 if needed
status from is_newer() = -2
using default preprocessor sequence
found tbl(1) directive
man: 
not executing command:
 (cd /usr/share/man/zh_CN && (echo ".pl 1100i"; /bin/bzip2 -c -d '/usr/share/man/zh_CN/man1/su.1.bz2'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/groff -S -Tlatin1 -mandoc | /usr/bin/less)

作者: iblicf   发布时间: 2007-09-20

问题好像出在你的 man.conf文件上,应该把-Tascii去掉。
#nano /etc/man.conf

(把原来的这行)
NROFF /usr/bin/nroff -Tascii -c -mandoc
(用下面的这行替换)
NROFF /usr/bin/nroff -mandoc -c

作者: zhou3345   发布时间: 2007-09-21

好了,根据这个帖子做的:http://forums.gentoo.org/viewtopic-p-2810912.html

谢谢大家的帮忙

作者: iblicf   发布时间: 2007-09-21

兄弟还是没明白我的意思,要是用什么另外的groff-utf8,要更麻烦些。
你试试我的方法,就两条,比那简单。

作者: zhou3345   发布时间: 2007-09-21

引用:
作者: zhou3345
兄弟还是没明白我的意思,要是用什么另外的groff-utf8,要更麻烦些。
你试试我的方法,就两条,比那简单。
哥们,我试过了,不行

TROFF /usr/bin/groff -Tps -mandoc
NROFF /usr/bin/nroff -mandoc -c

#NROFF /usr/bin/groff -S -Tlatin1 -mandoc
#TROFF /usr/local/bin/groff-utf8 -Tutf8 -mandoc
#NROFF /usr/local/bin/groff-utf8 -Tutf8 -mandoc

man su
---------------------------------------------------------------------------
SU(1) FSF SU(1)

NAME(åç§°)
su - è¿è¡æ¿æ¢ç¨æ·åç»æ è¯çshell

SYNOPSIS(æ»è§)
su [OPTION]... [-] [USER [ARG]...]

DESCRIPTION(æè¿°)
ä¿®æ¹ææç¨æ·æ è¯åç»æ è¯ä¸ºUSERç.

作者: iblicf   发布时间: 2007-09-21

我不知道你用的是什么locale。你可以先试试:
LC_MESSAGES=zh_CN.UTF-8 man su

代码:
NAME(名称)
 su - 运行替换用户和组标识的shell

SYNOPSIS(总览)
 su [OPTION]... [-] [USER [ARG]...]

DESCRIPTION(描述)
 修改有效用户标识和组标识为USER的.

 -, -l, --login
 使得shell为可登录的shell

 -c, --commmand=COMMAND
 传递单个COMMAND给-c的shell.

 -f, --fast
 传递-f给shell(针对csh或tcsh)

 -m, --preserve-environment
 不重置环境变量

 -p 与-m同

 -s, --shell=SHELL
 如果/etc/shells允许,运行SHELL.

 --help 显示帮助并退出
这个问题是很郁闷,我也是研究了好久才得到这个方法的,在很多gentoo系统上试过,都没问题,所以才极力建议你用。

你先把所有的修改都复位,将man.conf删除,重新emerge man-pages,移走那什么groff-utf8,重新emerge =groff-1.18.1.1,再按前面的方法试试。最好在做了修改后 env-update && source /etc/profile 一下。还有什么问题可以到irc在线交流:)

作者: zhou3345   发布时间: 2007-09-21