Showing posts with label Gentoo. Show all posts
Showing posts with label Gentoo. Show all posts

Wednesday, March 18, 2009

Howto enable tab completion with sudo in Gentoo

The problem:
After I installed Gentoo, I found that tab completion with sudo doesn't work. i.e., type:
$sudo emer[tab]
doesn't shows or completes with the word "emerge". Without sudo, the tab completion works.

Solution:
install bash-completion package, and
$eselect bashcomp base gentoo ssh

...
Read More

Wednesday, July 23, 2008

screen goes black when use vesafb

When I use vesafb and set vga=xxx as kernel option to change the resolution, the screen goes blank at boot time. I know the system is still booting, nothing is wrong except the screen.

I finally found the solution. I appears the framebuffer module is not loaded with the kernel.

The walkthough is to edit /etc/modules.autoload.d/kernel-2.6   (in Gentoo, other distros may have different path) to add these two lines:

fbcon
vesafb

...
Read More

Saturday, July 12, 2008

升级x11-misc/shared-mime-info-0.40后mime数据出问题

升级x11-misc/shared-mime-info-0.40后打不开pdf、zip等文件,所有格式均识别为mime/plain-text。

Gentoo Bug #228885

解决办法为:

$ update-mime-database ~/.local/share/mime/
# update-mime-database /usr/local/share/mime/

...
Read More

Thursday, March 20, 2008

HOWTO Editing Gnome/KDE Menus

Introducion

You know the menu that's shown if you start the kde-menu, gnome-menu, xfce-menu or something else. There's no real name for this kind of menu (it's also often called "root-menu"), but the menu is saved in a Freedesktop-Standard. 

Where are the files saved?

The menus are made out of a "Main file" (.menu file). The file is written in XML, and it contains a kind of links to the Applications (.desktop files). 

The Main file detailing system-wide default menu structure might be located in one of the followings directorys: 
/etc/xdg/menus/ 
User-specific menu edits: ~/.config/menus/ 
If you have not found your file yet, search for it: find / -iname *.menu 

System-wide Menu entries (.desktop files) are stored in many places, for example: 
/usr/share/applications/ 
/usr/share/applink/
Gnome applications:
/usr/share/gnome/apps/
KDE applications: 
/usr/kde/3.5/share/applications/
User-specific applications: 
~/.local/share/applications/

Or search for the files: find / -iname *.desktop

...
Read More
 
/* google analytics */