这里只是我的个人安装经验总结。我习惯于完全定制我所需要的软件,所以这篇文章仅供有同样兴趣的朋友参考,应用时请请根据自己的实际情况进行修改。
该文章针对Debian Lenny版本而写,安装共分4步。
1. 安装时不选择任何预选组件,重启后进入root用户的shell
该文章针对Debian Lenny版本而写,安装共分4步。
1. 安装时不选择任何预选组件,重启后进入root用户的shell
dpkg-reconfigure locales
gedit /etc/sudoers
apt-get install xorg gnome-core gdm -y
gedit /etc/sudoers
apt-get install xorg gnome-core gdm -y
自定义安装Debian Lenny后,用户无法通过System->Shut Down->Hibernate实现休眠,会有错误信息提示。一开始我以为是Debian暂时还不支持休眠,所以也一直没在意。最近才发现原因是因为当前用户的权限不够导致的。
解决方法:System->Administration->Users and Groups->Manage Groups,将当前用户加入haldaemon和powerdev组中,重启即可。
解决方法:System->Administration->Users and Groups->Manage Groups,将当前用户加入haldaemon和powerdev组中,重启即可。
为了提高编译速度,想把工程支持预编译,然后加入相应选择后却一直没有效果。经查资料,然后还需要设置一下pch.h文件。下面的资料从Code::Blocks的Wiki摘录而来:http://wiki.codeblocks.org/index.php?title=Precompiled_headers
Using precompiled headers (or PCH) speeds up the compilation of large projects (like Code::Blocks itself) by large amounts. This works by creating a header file which #includes all the rarely-changing header files for your project. Then the compiler is instructed to pre-compile this header file. This creates a new file which is now in a binary format that only the compiler understands. But, since it doesn't have to re-parse your header files for every source file that includes them, the process will now be considerably faster.
Using precompiled headers (or PCH) speeds up the compilation of large projects (like Code::Blocks itself) by large amounts. This works by creating a header file which #includes all the rarely-changing header files for your project. Then the compiler is instructed to pre-compile this header file. This creates a new file which is now in a binary format that only the compiler understands. But, since it doesn't have to re-parse your header files for every source file that includes them, the process will now be considerably faster.
利用别名切换wxWidgets库
Linux的命令行拷贝的方法切换不同的库时操作起来比较麻烦,而且/usr/local/bin/wxrc和/usr/local/bin/wxrc-2.8文件无法实现替换。虽然我还不知道这两个文件是干什么用的,但存在就必然有其道理,所以一直感觉很别扭。如何妥善的解决这个问题呢?
很长的命令行输入时很麻烦,还好,通过alias,以别名的方式使得输入命令行的过程即简单又有趣!在这个文件中加入以下几行:
Linux的命令行拷贝的方法切换不同的库时操作起来比较麻烦,而且/usr/local/bin/wxrc和/usr/local/bin/wxrc-2.8文件无法实现替换。虽然我还不知道这两个文件是干什么用的,但存在就必然有其道理,所以一直感觉很别扭。如何妥善的解决这个问题呢?
很长的命令行输入时很麻烦,还好,通过alias,以别名的方式使得输入命令行的过程即简单又有趣!在这个文件中加入以下几行:
gedit ~/.bashrc
alias up='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo aptget autoclean'
alias sw='sudo pon dsl-provider'
alias dk='sudo poff'
alias up='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo aptget autoclean'
alias sw='sudo pon dsl-provider'
alias dk='sudo poff'
安装Debian Lenny后很郁闷的一件事情就是无法双击相应的Windows分区(或右键挂载),实现简捷挂载硬盘分区的目的。提示用户没有权限操作:
如何实现Debian的简捷挂载分区功能呢?
Cannot mount volume.
You are not privileged to mount this volume.
当时很羡慕Ubuntu的这个功能,于是短时间内转为Ubuntu用户。但终究忍受不了Ubuntu 8.04的启动慢、内存大、资源高、无用东西安装多、系统臃肿且不稳定,又变为Debian的Lenny用户。(晕:Debian的测试版竟然比Ubuntu 8.04的正式版还稳定!)You are not privileged to mount this volume.
如何实现Debian的简捷挂载分区功能呢?





2008/05/29

