DEBIAN LINUX问答集合

发表于:2007-07-04来源:作者:点击数: 标签:
1.一般用户su root后无法运行任何图形界面的软件? ln -s /home/normaluser/.Xauthority /root/.Xauthority 2. X 无法启动 将XF86Config-4中的Option "UseFBDev" "true" 用#注释掉,就可以了 debian认不了光驱? ln -sf /dev/hd? /dev/cdrom 其中hd?就是你光驱
1.一般用户su root后无法运行任何图形界面的软件?

  ln -s /home/normaluser/.Xauthority /root/.Xauthority

  2. X 无法启动

  将XF86Config-4中的Option "UseFBDev" "true"

  用#注释掉,就可以了

  debian认不了光驱?

  ln -sf /dev/hd? /dev/cdrom

  其中hd?就是你光驱所在的接口

  3.我的声卡问题解决 /dev/dsp 权限不够

  正确方法是

  # adduser 用户名 audio

  # adduser wide288 audio

  比如用户名为wide288,重新登录wide288用户

  通过knoppix安装装debian的办法

  用Knoppix启动后在root shell下执行knx-hdinstall按提示做几十分钟后就有一个完整的debian系统了。

  4.把rpm包转成deb包的工具

  就是alien了

  先apt-get install alien安装,装完试试用alien -d 把rpm包转成deb包,俺用它转了G五笔的deb包,使用正常

  alien -i name-of-the-pakage.rpm

  直接就能装上了,有时候能解决一些rpm包的所谓关联性问题

  请教,X下鼠标显示一个怪怪的方块?先谢了!

  是Trident显卡的驱动问题,好像Sis的显卡也有这个问题,解决方法是:

  在XF86Config-4的Device字段添加一行:

  Option "sw_cursor"

  在xfree86的网站上说是: Option "SWCursor" "on" ,我没有试过.

  5.请问如何使一个软件不进行升级

  somebody said hold was a status flag to tell apt not to automatically upgrade a package. apt will place packages on hold if they require packages that are not currently installable; you can 'apt-get install pkgname' to explicitly install the package. To put a package on hold, 'echo pkgname hold | dpkg --set-selections' or use the '=' key on the package in dselect, or 'echo pkgname install | dpkg --set-selections' to remove the hold

  我们说 hold ,其实是一个状态标志,目的是告诉 apt 停止自动升级某个包裹。

  apt 将让一些包裹处于 hold 状态,如果他们请求的包裹现在不可安装;

  你能够使用 ‘apt-get install pkgname' 来安装包裹。

  为了让包裹置于 hold. 'echo pkgname hold | dpkg --set-selections ' 或在 dselect 中使用 '=' 键于对应的包裹。

  移除 hold 用

  'echo pkgname install | dpkg --set-selections'

  用synaptic,软件包的状态在gui界面中显示得一清二楚.

  这样也许选择的更多

  dpkg --get-selections *>status.current

  vi stantus.current//你想hold的package

  dpkg --set-selections

  6.“could not locate char-major-10-135 ”的解决

  It's harmless. Just means you do not have the RTC clock module compiled into your kernel, or the module has not been loaded. There should be an alias for this in

  /etc/modules.conf:

  alias char-major-10-135 rtc

  If not, check /etc/modutils/arch/i386 (if you have an intel/amd system) and put it in there, then run update-modules.

  modconf might allow you to force load the rtc module, if it exists, at boot by putting rtc in /etc/modules. That may help.

  As a last resort, if your kernel doesn't have it, you may want to install a kernel with rtc support or compile your own.

  引自 www.debianhelp.com

  相信很多朋友都会看到这个讨厌的信息,上面的方法能解决问题。:)

  以下是转贴

  解决关于"char-major-10-135"的错误,原因是新内核没有加入RTC支持,请在内核配置中的"character device"里将"enhanced real time clock support"选上Y或M就没这个错误了

  建议选上这个支持,很多要编译的程序需要这个支持,譬如mplayer

  不知道这些错误大家有没有遇见过

  modprobe:modprobe:Can't locate module char-major-108

  modprobe:modprobe:Can't locate module char-major-6

  我的办法最简单:

  不管数值是什么,我统统的;

  alias char-major-10-135 off

  最后用off就好啦,管它呢,又不影响使用

原文转自:http://www.ltesting.net