Currently reading articles under label: linux

Reconfig Locale

Option 1:

mkdir -p /var/lib/locales/supported.d/ && \

echo "en_GB.UTF-8 UTF-8" > /var/lib/locales/supported.d/gb && \

echo "zh_CN.UTF-8 UTF-8" > /var/lib/locales/supported.d/zh && \

echo "sv_SE.UTF-8 UTF-8" > /var/lib/locales/supported.d......

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......

NIX (unix OR”linux” OR”ubuntu” OR”kubuntu” OR”redhat” OR”debian” OR”centos” OR”fedora”)

See also:

distro: bit.ly/s_distro

router: bit.ly/s_router

Install

automaic / unattended installation of ubuntu

http://askubuntu.com/questions/122505/how-do-i-create-a-completely-unattended-install-of-ubuntu

Completely-Automatic-Unattended-Install-of-Ubuntu-Auto-system-config-kickstart

multi sy......

[bak] Sar 监控命令小览

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

from: qa.taobao.com

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

linux, ubuntu emergency safe reboot

http://en.wikipedia.org/wiki/Magic_SysRq_key#.E2.80.9CREISUB.E2.80.9D_.E2.80.93_safe_reboot

“REISUB” – safe reboot

un*Raw (take control of keyboard back from X),

tErminate (send SIGTERM to all processes, allowing them to terminate gracefully),

kIll (send SIGKILL to all processes, forcing them to te......

linux,ubuntu添加开机自动运行程序方法autorun

1. 开机自动运行

Linux加载后, 它将初始化硬件和设备驱动, 然后运行第一个进程init。init根据配置

文件继续引导过程,启动其它进程。通常情况下,修改放置在

/etc/rc或

/etc/rc.d 或

/etc/rc?.d

目录下的脚本文件,可以使init自动启动其它程序。例如:编辑

/etc/rc.d/rc.local 文件(该文件通常是系统最后启动的脚本),

在文件最末加上一行“xinit”或“startx”,可以在开机启动后直接进入X-Window。

2. 登录自动运行

用户登录时,bash先自动执行系统管理员建立的全局登录script :

/ect/profile

然后......