2009年2月26日星期四

普通用户访问usb (mount 权限)

正常情况下,普通用户访问不了root挂在的usb设备,需要家一个选项:
mount /dev/sdb1 /mnu/usb -o umask=0
这样就开放了权限。

在/etc/fstab 中加上这个选项就行了,:
/dev/sdb1 /mnt/usb auto noauto,noatime,umask=0 0

2009年2月21日星期六

xterm的粘贴和复制方法

使用光标选定即为复制(不需Ctrl+C),点击鼠标中键或Shift+Insert完成粘贴(Ctrl+(Shift)+V无效)。

source: http://www.davidsimmons.com/soft/xtermhacks/
Friendly copy-and-paste

Many xterm users are frustrated because it is difficult to copy text from an xterm and paste it into modern applications such as Firefox. The root of the problem is that there are two different “selection buffers” that are commonly used in the X Window System:

CLIPBOARD
The “CLIPBOARD” selection buffer is used for the cut-and-paste functions that most users are familiar with: Selecting the “cut”, “copy” or “paste” menu items from the application’s “Edit” menu, or using the corresponding CTRL-X, CTRL-C, or CTRL-V shortcut keys. This selection buffer is the standard means of performing cut-and-paste operations in most modern applications. However, this selection buffer is unfortunately not used at all by xterm in the default configuration.
PRIMARY
The “PRIMARY” selection buffer receives data when the user highlights text with the mouse. The text in this buffer is pasted when the user presses the middle mouse button in an application’s text entry field. This cut-and-paste buffer is a legacy function which new users are generally not told about, in the interests of avoiding mass confusion. Most modern applications support this buffer. This is the only buffer used by xterm.

2009年2月14日星期六

(网卡)Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)驱动

Devices Drivers
[*] Network device support --->
[*] Ethernet (1000 Mbit) --->
<*> Realtek 8169 gigabit ethernet support



就是这个了,

(声卡)ATI Technologies Inc SB450 HDA Audio (rev 01)驱动

我的声卡的驱动,用一点怪,在内核里选择的芯片型号跟lspci的不一样,但是却好用,跟lspci想匹配的却不好用,,:
Device Drivers --->
<*> Sound card support --->
<*> Advanced Linux Sound Architecture --->
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
[*] OSS PCM (digital audio) API - Include plugin system
[*] PCI sound devices --->
<*> Intel HD Audio
[*] Build Realtek HD-audio codec support