Tag Archive for 'Linux'

Page 2 of 8

Linux For Thinkpad 下投影仪使用

安装完Linux一般都会发现快捷键不好用了。

1、简单方法
切入到文本控制台CTRL+ALT+F1
执行 echo crt_enable > /proc/acpi/ibm/video
切回图形界面就可以使用投影仪了。
注:执行前确认  /proc/acpi/ibm/video 存在
如果不存在请往下看。

2、复杂且有效方法

linux-wiki

http://www.thinkwiki.org/wiki/Problem_with_video_output_switching

Share

cpulimit – 限制进程的 CPU 占用率

cpulimit

cpulimit 是一个简单而有用的小程序,通过它你可以限制一个进程的 CPU 占用率。如果善加利用,必将成为系统管理员的得力助手。

cpulimit 的用法也很简单,如上图所示,通过 -e 选项指定需控制的进程名(或 -p 选项指定 pid),-l 选项指定 CPU 的占用百分比即可。这里,我将 Chrome 的 CPU 占用率限制到 25%。

cpulimit 可从其项目主页下载,或通过你所用的 Linux 发行版包管理器安装。

Share

Bash Shell Keyboard shortcuts

The following shortcuts work when using default (Emacs) key bindings. Vi-bindings can be enabled by running set -o vi.

Tab ⇆ : Autocompletes from the cursor position.
Ctrl+a : moves the cursor at the beginning of the line (equivalent to the key Home).
Ctrl+e : (end) moves the cursor at the line end (equivalent to the key End).
Ctrl+p : (previous) recalls the previous command (equivalent to the key ).
Ctrl+n : (next) recalls the next command (equivalent to the key ).
Ctrl+r : (research) recalls the last command including the specified character(s). A second Ctrl+r recalls the next anterior command which corresponds to the research
Ctrl+s : Go back to the next more recent command of the research (beware to not execute it from a terminal because this command also launches its XOFF). If you changed that XOFF setting, use Ctrl+q to return.
Ctrl+o : executes the found command from research.
Ctrl+l : clears the screen content (equivalent to the command clear).
Ctrl+u : clears the line content before the cursor and copy it in the clipboard.
Ctrl+k : clears the line content after the cursor and copy it in the clipboard.
Ctrl+w : clears the word before the cursor and copy it in the clipboard.
Ctrl+y : (yank) adds the clipboard content from the cursor position.
Ctrl+d : sends an EOF marker, which (unless disabled by an option) closes the current shell (equivalent to the command exit).
Ctrl+c : sends the signal SIGINT to the current task, which aborts and closes it.
Ctrl+z : sends the signal SIGTSTP to the current task, which suspends it. To return to it later one can enter fg ‘process name’ (foreground).
Ctrl+x Ctrl+x : (because x has a crossing shape) alternates the cursor with its old position.
Ctrl+x Ctrl+e : (editor because it takes the $EDITOR shell variable) edits the current line in vi.
Alt+f : (forward) moves forward the cursor of one word.
Alt+b : (backward) moves backward the cursor of one word.
Alt+Del : cuts the word before the cursor.
Alt+d : cuts the word after the cursor.
Alt+u : capitalizes every character from the cursor’s position to the end of the current word.
Alt+l : lowers the case of every character from the cursor’s position to the end of the current word.
Alt+c : capitalizes the character under the cursor and moves to the end of the word.
Alt+r : cancels the changes and put back the line as it was in the history.

Share

Logging In to Xen Console After Receiving “xenconsole: Could not open tty” Error

So you try and log in to a domU and xen says it can’t open a tty?

1
2
3
4
5
6
[tres@calliope ~]$ sudo xm console xen-domu.vm
xenconsole: Could not open tty `/dev/pts/15': No such file or directory
This error normally happens when xenconsoled is no longer running. You can quickly verify by looking for the xenconsoled process:

[tres@calliope ~]$ ps auxwww | grep xenconsoled
[tres@calliope ~]$

If you don’t find it, just run

1
/etc/init.d/xend start
Share

Linux下查看内存条数命令

1
$ dmidecode |grep -A16  "Memory Device$"
Share

Oracle

Share

Build New Kernel For Thinkpad

Thinkpad New Linux Kernel 2.6.27.38

Thinkpad New Linux Kernel 2.6.27.38

Share

How to configure the TrackPoint(Thinkpad)

http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint

如何配置小红帽

Share

A Basic LaTeX HOWTO

http://mike.marineau.org/blog/howto/2007-02-22-basic-latex-howto

http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf

Share

Sed再一次使用

1
find . -type f | xargs sudo sed -i 's/预定/预订/g'
Share