add this to your xorg.conf.
Section “ServerFlags”
Option “AutoAddDevices” “false”
EndSection
Category Archives: Linux
gdb调试器用法
http://code.google.com/p/ldd6410/wiki/GDBDebug
GDB是GNU开源组织发布的一个强大的UNIX下的程序调试工具,GDB主要可帮助工程师完成下面4个方面的功能:
- 启动程序,可以按照工程师自定义的要求随心所欲的运行程序。
- 让被调试的程序在工程师指定的断点处停住,断点可以是条件表达式。
- 当程序被停住时,可以检查此时程序中所发生的事,并追索上文。
- 动态地改变程序的执行环境。
不管是调试Linux内核空间的驱动还是调试用户空间的应用程序,掌握gdb的用法都是必须。而且,调试内核和调试应用程序时使用的gdb命令是完全相同的,下面以代码清单22.2的应用程序为例演示gdb调试器的用法。
8 ways to share your git repository
This blogpost provides a summary of different ways to share a git repository. Depending on your needs you can opt for different solutions.
Repository | Pro | Con | Controlling Access | Create Repositories |
---|---|---|---|---|
File share | No network access required | Not internet friendly | Using filepermissions | Needs preparation per project on the share |
Git daemon | Fast git protocol | Not internet friendly port | no good permission control. Read by default, Write can be enabled , but only anonymous | per project needs to be blessed |
Plain SSH server | Allows good security | Not internet friendly port, requires account creation per user on server | Uses filepermissions | per project inited |
SSH server git-shell | Enhancement of Plain SSH Server scenario | Not internet friendly port, requires account creation per user on server | Uses filepermissions | per project inited |
Gitosis | Adds good remote management of users and repositories, only requires one system account | Not internet friendly port | Uses gitosis-config file | No server initalisation, only config is needed |
Apache http | Falls back to standard apache config, only requires one system account, internet friendly | Slightly overhead | Uses htpasswd | per project inited |
Apache http + gitweb | Falls back to standard apache config, only requires one system account, internet friendly, adds nice view of repository | Slightly overhead, read-only access | Uses htpasswd | per project inited |
github | Internet accessible, easy to use webinterface | Hosted externally | Managing sshkeys | Web interface |
tmux vs screen
# split windows like vim
# vim’s definition of a horizontal/vertical split is reversed from tmux’s
bind s split-window -v
bind v split-window -h
# move around panes with j and k, a bit like vim
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# resize panes like vim
# feel free to change the “1” to however many lines you want to resize by, only one at a time can be slow
bind < resize-pane -L 1
bind > resize-pane -R 1
bind – resize-pane -D 1
bind + resize-pane -U 1
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# vi-style controls for copy mode
setw -g mode-keys vi
setw -g mode-mouse on