Currently reading articles under label: nix

SSH In Case Of

Note: Putty officially recommends to use Bitvise SSH Client & Server.

SUDO

no passwd for sudo

vim /etc/sudoers

modify ALL=(ALL) ALL to ALL=(ALL) NOPASSWD:ALL (add NOPASSWD: before the last ALL)

Config > Less Time

Add two commands to avoid long time before asking passwords:

GSSAPIAuthen......

Screen, Tmux, Window, Session

Screen

http://neophob.com/2007/04/gnu-screen-cheat-sheet/

table:nth-of-type(1) {

display:table;

width:100%;

}

table:nth-of-type(1) th:nth-of-type(2) {

width:60%;

}

CMD

Description

screen -ls

list all ( format: pid.session_name )

screen

create session

screen -S......

Boot to text console terminal mode [Ubuntu Kubuntu Nix Linux]

Once

shift / esc to menu , then 'e' to modify boot option, change "quiet splash" to "text", F10 / Ctrl+x to continue boot.

Always

> sudo su

> vi /etc/default/grub

comment out: # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

add:                      GRUB......

O'Reilly原版Linux图书学习线路图

from: http://www.embeddedlinux.org.cn/html/xinshourumen/200811/07-311.html

PHP In Case Of

Fatal error: Call to undefined function mb_strlen()

apt-get / yum search mbstring ; apt-get / yum install php-mbstring ...

http://blog.fity.cn/post/187/

 

Fatal error: Call to undefined function imagecreate()

and it takes a lot of time to upload a image.

apt-get install php5-gd

http://ww......

[bak] Sar 监控命令小览

see also jlevy/the-art-of-command-line (multi-language)

from: qa.taobao.com

最近接触了下淘宝的性能框架PAP,觉得系统中的监控真的做的很不错,但是非pap运行的程序,则无法监控,同时也查了下淘宝性能百科对监控命令Sar介绍,觉得讲的比较粗,这里把自己以前用过的Sar监控分享下;有问题,大家共勉哈!