gentoo 已解决、未问题(续) - idle

gentoo 已解决、未问题(续)

views63 posted @ 2011年8月06日 23:24 in II with tags gentoo linux 为工具所累 , 6368 阅读

1.挂载可读写 ntfs 分区

 

配置 Gentoo 内核时在 ntfs 配置下有一项“NTFS write support”:

File systems  --->

DOS/FAT/NT Filesystems  --->

<*> NTFS file system support
[*]   NTFS debugging support
[*]   NTFS write support

启动后发现挂载的 ntfs 分区然没有写入权限。

File systems  --->

<*> Filesystem in Userspace support

安装 ntfs-3g

2.自动挂载非 gentoo 分区不输入密码

 

sudo gedit /usr/share/polkit-1/actions/org.freedesktop.udisks.policy

找到

  <action id="org.freedesktop.udisks.filesystem-mount-system-internal">
    <description>Mount a system-internal device</description>
    <message>Authentication is required to mount the device</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

把 auth_admin_keep 改成 yes 保存.

3.Gentoo Flash 插件

 

下载 plug-in for Linux 64-bit 将其中的 libflashplayer.so 复制到 ~/.mozilla/plugins/libflashplayer.so

chmod 755 libflashplayer.so 

4.gnome network manager

 

每次新建连接都输入密码的, rm -rf ~/.gnome2/keyrings/ 解决. 建立 Ad-hoc 失败. 系统启动时有告警信息,太快了没看清。

5.Ibus 不能自动加载

 

在/etc/X11/xinit/xinitrc.d目录新建一个文件,文件名为 100-xinputrc(名称随便),内容如下

export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus"
ibus-daemon -d -x

再设置 755 权限

chmod 755 /etc/X11/xinit/xinitrc.d/100-xinputrc

2011.8.30 注:放在 ~/.xprofile 里面也可以。

gentoo 更新后 ibus 坏了,运行 ibus-setup 提示:… ImportError: libffi.so.6: 无法打开共享对象文件: 没有那个文件或目录…, ln -s /usr/lib/libffi.so.5.0.10 /usr/lib/libffi.so.6 解决

6.中文 man 乱码

 

安装 man-db 虽然可以解决,但中文和西文字符的间距不正常,用 export GROFF_ENCODING=`locale charmap` 可以解决

7.gdm 中文界面


在 /etc/init.d/xdm 添加 export LANG=zh_CN.UTF-8 即:

gdm|gnome)
	export LANG=zh_CN.UTF-8 
	EXE=/usr/bin/gdm
	[ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
	PIDFILE=/var/run/gdm.pid
	;;

未解决

 

1.gnome 的软件都无法打开自带的帮助文档,提示 Could not initialize gecko!(莫名其妙可以打开了)

2011.8.30 注:重新编译安装 xulrunner

emerge -aqv xulrunner

2.warning: (ACPI_HOTPLUG_CPU) selects ACPI_CONTAINER which has unmet direct dependencies (ACPI && EXPERIMENTAL)

依赖 [*] Prompt for development and/or incomplete code/drivers

3.无法建立点对点的 ad-hoc 模式的无线连接



 

 

 

Avatar_small
Garfileo 说:
2011年8月07日 00:08

flash 插件,portage 里有吧。

ibus 那个,建议在 /etc/env.d 里建立配置文件,并且不要 ibus-damemon -d -x 那行。因为你只需要使用 gnome-session-properties 设置 gnome 桌面登录时自动启用 ibus。

如果你不使用 gnome 的话,其它桌面也有类似机制。

Avatar_small
views63 说:
2011年8月07日 11:10

flash 插件,portage 里有,安装要下载很多东西(应该是 USE 没设置好)就自己安装现成的了。

Avatar_small
Garfileo 说:
2011年8月07日 12:45

portage 里有的东西尽量去用吧。否则在你使用 gentoo 的过程中,它永远都是个问题。事实上 adobe-flash 的依赖并不多,基本上都是系统应该有的包。

gnome 帮助的问题,检查一下 yelp 装好了没。

Avatar_small
views63 说:
2011年8月07日 14:35

需要 4 个包。还没安装什么软件系统已经安装了 516 个包了。
yelp 重新安装了一般,问题依旧。算了很少看自带的文档。下次干脆添加 USE=“-doc ……”

Avatar_small
Garfileo 说:
2011年8月07日 15:40

我的全局 USE。

USE="libnotify pulseaudio alsa X gnome gtk cairo threads smp ldap xpm pango opengl udev truetype xft crypt alsa cdr bash-completion dbus svg jpeg jpeg2k png tiff -kde -arts -qt3 -qt4 -ipv6 -doc -kerberos -avahi -perl -ruby -networkmanager -bluetooth"

Avatar_small
Garfileo 说:
2011年8月07日 15:41

如果你的 profile 选的是 default/linux/x86/10.0/desktop,那么包自然会多很多,可以选 default/linux/x86/10.0

Avatar_small
views63 说:
2011年8月07日 16:02

选的还是 default/linux/x86/10.0/desktop/gnome

我的

USE="bash-complection apng freetype -virtual -cups apci opengl symlink mmx alsa sse sse2 sse3 sse4 unicode gtk xorg branding X nvidia dbus gdm gnome -kde -qt4 -qt3 firefox usb udev sqlite smp laptop intel -bluetooth"

Avatar_small
Garfileo 说:
2011年8月07日 16:33

nvidia 不需要出现在 USE 里,只需要出现在 VIDEO_CARDS 里。

你不是 amd64 吗,怎么会是 x86/10.0

Avatar_small
views63 说:
2011年8月08日 01:59

直接复制上面的,没改成 amd64.
default/linux/amd64/10.0/desktop/gnome

Avatar_small
Mike Ma 说:
2011年8月10日 16:17

yelp 无法加载 gecko 的问题主要是版本问题,看你安装 xulrunner 了没?版本号是否对得上?

Avatar_small
views63 说:
2011年8月11日 09:49

[ebuild R ] net-libs/xulrunner-2.0.1-r1
[ebuild R ] gnome-extra/yelp-2.30.2-r6
版本不匹配?

Avatar_small
Mike Ma 说:
2011年8月11日 13:20

突然发现言辞有些激烈= = sorry

我的yelp版本是3.0,xulrunner是5.0,不过我以前折腾firefox4的时候知道了一个真相,就是gnome2的yelp和xulrunner2不兼容。

Avatar_small
Garfileo 说:
2011年8月11日 13:45

@Mike Ma: yelp 3.0 貌似已经不依赖 xulrunner 了,换成 webkit-gtk 了。

Avatar_small
views63 说:
2011年8月11日 13:47

言辞有些激烈?没看出来。

早上修改了 USE

SE="bash-complection apng truetype apci opengl symlink \
mmx alsa sse sse2 sse3 sse4 unicode gtk xorg branding X dbus gdm gnome \
firefox usb udev sqlite smp laptop intel ssl readline nls pulseaudio wifi \
cairo networkmanager -doc -bluetooth -virtual -cups -qt4 -qt3 -kde "

运行 emerge -avuDNl --with-bdeps y @world --quiet 后就可以打开 yelp 了不过有这样的告警:

(yelp:29925): Gtk-CRITICAL **: IA__gtk_tool_button_new: assertion `icon_widget == NULL || GTK_IS_MISC (icon_widget)' failed

(yelp:29925): GLib-GObject-WARNING **: invalid (NULL) pointer instance

Avatar_small
Garfileo 说:
2011年8月11日 14:42

@views63: 报警很正常。

$ yelp 2>/dev/null

就没警告了。

Avatar_small
views63 说:
2011年8月12日 20:58

@Garfileo: >ibus 那个,建议在 /etc/env.d 里建立配置文件,并且不要 ibus-damemon -d -x 那行。
刚才试了,我这边无效,只能用上面那个方法。

Avatar_small
Garfileo 说:
2011年8月12日 22:11

@views63: 每当你修改 /etc/env.d 中的文件之后,需要执行 `sudo env-update`。

Avatar_small
views63 说:
2011年8月13日 08:49

有更新过,用那 root 的终端
env-update && source /etc/profile

AHSEC 12th Class Que 说:
2022年8月17日 20:59

The Sample Question Paper for students doing their Intermediate or 12th grade has been released by the Board of AHSEC 12th Education Assam. AHSEC 12th Class Question Paper 2023 The tests will be given The sample test is now available for download. Due to the fact that Assam is conducting the exams separately, they will announce the dates separately in January 2023 on the Assam Board's official website. After the release of the Assam 12th Question Paper 2023, Assam HS 12th Exam Guess Paper 2023, Assam HS 12th Exam New Model Paper 2023, we will also provide here. Assam 12th Grade Exam Questions 2023


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee