http://www.vim.org/scripts/script.php?script_id=102



DirDiff.vim : A plugin to diff and merge two directories recursively. 


 Usage:   <Enter>/'o'=open,'s'=sync,'\dj'=next,'\dk'=prev, 'q'=quit

 Options: 'u'=update,'x'=set excludes,'i'=set ignore,'a'=set args

 Diff Args: -r --brief -x".svn" -x"CVS" -x"*.class" -x"*.exe" -x".*.swp"


Posted by eoseontaek

Error : 

[root@steo lib]# yum makecache

Repository updates is listed more than once in the configuration

http://mirror.dulug.duke.edu/pub/yum-repository/redhat/17/i386/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirror.dulug.duke.edu; 이름 혹은 서비스를 알 수 없습니다"

Trying other mirror.



Solved :

# vi /etc/yum.conf

[main]

cachedir=/var/cache/yum

debuglevel=2

logfile=/var/log/yum.log

pkgpolicy=newest

distroverpkg=redhat-release

tolerant=1

exactarch=1


[fedora]

name=Fedora Core $releasever base

failovermethod=priority

#baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch

enabled=1

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch


[fedora-debuginfo]

[fedora-debuginfo]

name=Fedora $releasever - $basearch - Debug

failovermethod=priority

#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch

enabled=0

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch


[fedora-source]

name=Fedora $releasever - Source

failovermethod=priority

#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch

enabled=0

metadata_expire=7d

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch


Link : 


'[D-01] Linux' 카테고리의 다른 글

[Linux] Diff two directory on vi  (0) 2014.01.24
[Fedora17] When yum, segmentation fault  (0) 2013.10.21
[Linux] Fedora 8 Newtork 설치  (0) 2013.09.30
[Linux] hotplug & firmware loading  (0) 2013.09.13
Fedora 17 NFS 설정  (0) 2012.12.10
Posted by eoseontaek

Error : 


[root@steo steo]# yum clean all
세그멘테이션 오류 (core dumped)


Fixed : 

[root@steo lib]# ls -l libz*

lrwxrwxrwx. 1 root root     23 12월  6  2012 libz.so -> ../../lib/libz.so.1.2.5

lrwxrwxrwx. 1 root root     13 12월  6  2012 libz.so.1 -> libz.so.1.2.5

-rwxr-xr-x  1 root root  87332  8월  2  2012 libz.so.1.2.5


zlib-1.2.5를 zlib-1.2.8 로 변경함

# wget http://zlib.net/zlib-1.2.8.tar.gz
# tar -xvzf zlib-1.2.8.tar.gz
# cd ./zlib-1.2.8
# ./configure
# make
# make install

Link :

http://www.zlib.net/

http://serverfault.com/questions/256385/yum-segmentation-fault-in-centos

Posted by eoseontaek

Server name : http://archives.fedoraproject.org

File directory : /pub/archive/fedora/linux/releases/8/Fedora/i386/os/


http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/i386/os/images/stage2.img 파일이 존재하는 확인한다. 


Link :  http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/8/Fedora/i386/os/


참고 : 

http://wiz.pe.kr/448



Posted by eoseontaek

#!/bin/sh


#########################################

# USB Port on FH7200

#

# REAR  : ehci-brcm.0 -> BUSNUM=001

# INNER : ehci-brcm.1 -> BUSNUM=002

# FRONT : ehci-brcm.2 -> BUSNUM=003

#########################################


# set to '1' to enable USB thumbdrive automount

AUTOMOUNT=1


AUTOMOUNT_REAR_POINT="/mnt/usbrear"

AUTOMOUNT_RSS_POINT="/mnt/rss"

AUTOMOUNT_FRONT_POINT="/mnt/usb"

SAVED_REAR_DEVPATH="/tmp/saved-usbrear-devpath"

SAVED_RSS_DEVPATH="/tmp/saved-rss-devpath"

SAVED_FRONT_DEVPATH="/tmp/saved-usb-devpath"


AUTOMOUNT_FS="vfat"


HOTPLUG_FW_DIR=/lib/firmware


# on boot (option : -s)


if [ "$1" = "-s" ]; then

for i in /sys/block/sd*/*/dev 

do

if [ -f $i ]; then

DEV=$(echo $i | sed -e 's@/dev@@' -e 's@.*/@@')

BLKDEV=$(echo $DEV | cut -c1-3)

BLKDEVPATH=`readlink /sys/block/$BLKDEV/device`


DEVPATH="/block/$BLKDEV/$DEV" 

if [[ "$BLKDEVPATH" == *usb1* ]]; then

echo $DEVPATH > $SAVED_REAR_DEVPATH

exec mount /dev/${DEV} ${AUTOMOUNT_REAR_POINT} -o iocharset=utf8

if [ $? -ne 0 ]; then

exec mount /dev/${DEV} ${AUTOMOUNT_REAR_POINT}

fi

elif [[ "$BLKDEVPATH" == *usb2* ]]; then

echo $DEVPATH > $SAVED_RSS_DEVPATH

exec mount /dev/${DEV} ${AUTOMOUNT_RSS_POINT} -o data=journal

elif [[ "$BLKDEVPATH" == *usb3* ]]; then

echo $DEVPATH > $SAVED_FRONT_DEVPATH

exec mount /dev/${DEV} ${AUTOMOUNT_FRONT_POINT} -o iocharset=utf8

if [ $? -ne 0 ]; then

exec mount /dev/${DEV} ${AUTOMOUNT_FRONT_POINT}

fi

fi

fi

done

fi


# userspace firmware loader


if [ "$1" = "firmware" ]; then

if [ "$ACTION" = "add" ]; then

echo 1 > /sys/$DEVPATH/loading

cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data

echo 0 > /sys/$DEVPATH/loading

fi

fi


# network hotplug

# NOTE: this only operates on real NICs (ethN), not lo/br0/sit0/etc.


if [ "$1" = "net" -a -e /sys/class/net/$INTERFACE/device ]; then

if [ "$ACTION" = "add" ]; then

/sbin/ifup $INTERFACE

elif [ "$ACTION" = "remove" ]; then

/sbin/ifdown $INTERFACE

fi

fi


# USB automount (only works with bash)



if [[ "$ACTION" = "remove" && "$1" = "block" ]]; then

if [[ -e $SAVED_REAR_DEVPATH ]]; then

USB_DEVPATH=`cat $SAVED_REAR_DEVPATH`

if [[ "$DEVPATH" = "$USB_DEVPATH" ]]; then

rm -f $SAVED_REAR_DEVPATH

exec umount -l ${AUTOMOUNT_REAR_POINT}

fi

fi

if [[ -e $SAVED_RSS_DEVPATH ]]; then

USB_DEVPATH=`cat $SAVED_RSS_DEVPATH`

if [[ "$DEVPATH" = "$USB_DEVPATH" ]]; then

rm -f $SAVED_RSS_DEVPATH

exec umount -l ${AUTOMOUNT_RSS_POINT}

fi

fi

if [[ -e $SAVED_FRONT_DEVPATH ]]; then

USB_DEVPATH=`cat $SAVED_FRONT_DEVPATH`

if [[ "$DEVPATH" = "$USB_DEVPATH" ]]; then

rm -f $SAVED_FRONT_DEVPATH

exec umount -l ${AUTOMOUNT_FRONT_POINT}

fi

fi

fi


# PHYSDEV* vars were removed in 2.6.37

if [ -z "$PHYSDEVPATH" ]; then

# for DEVPATH = /block/sda/sda1

PHYSDEVPATH=`readlink /sys/$DEVPATH/../device`

PHYSDEVDRIVER=`readlink /sys/$DEVPATH/../device/driver`

fi


if [[ "$AUTOMOUNT" = "1" && "$1" = "block" && "$ACTION" = "add" ]]; then

if [[ "$PHYSDEVPATH" == *usb1* ]]; then

if [[ ! -e $SAVED_REAR_DEVPATH && "$PHYSDEVDRIVER" = *sd && $[ ($MINOR % 16) == 1 ] ]]; then

DEV=${DEVPATH##*/}

echo $DEVPATH > $SAVED_REAR_DEVPATH

exec mount /dev/${DEV} ${AUTOMOUNT_REAR_POINT} -o iocharset=utf8

if [ $? -ne 0 ]; then

exec mount /dev/${DEV} ${AUTOMOUNT_REAR_POINT}

fi

fi

elif [[ "$PHYSDEVPATH" == *usb2* ]]; then

if [[ ! -e $SAVED_RSS_DEVPATH && "$PHYSDEVDRIVER" = *sd && $[ ($MINOR % 16) == 1 ] ]]; then

DEV=${DEVPATH##*/}

echo $DEVPATH > $SAVED_RSS_DEVPATH

exec mount /dev/${DEV} ${AUTOMOUNT_RSS_POINT} -o data=journal

fi

elif [[ "$PHYSDEVPATH" == *usb3* ]]; then

if [[ ! -e $SAVED_FRONT_DEVPATH && "$PHYSDEVDRIVER" = *sd && $[ ($MINOR % 16) == 1 ] ]]; then

DEV=${DEVPATH##*/}

echo $DEVPATH > $SAVED_FRONT_DEVPATH

exec mount /dev/${DEV} ${AUTOMOUNT_FRONT_POINT} -o iocharset=utf8

if [ $? -ne 0 ]; then

exec mount /dev/${DEV} ${AUTOMOUNT_FRONT_POINT}

fi

fi

fi

fi


Here's a C program to print hotplug nelink events to stdout:

hnetlink.c


참조 :

http://lwn.net/Articles/242046/

https://www.kernel.org/doc/pending/hotplug.txt



'[D-01] Linux' 카테고리의 다른 글

[Fedora17] When yum, segmentation fault  (0) 2013.10.21
[Linux] Fedora 8 Newtork 설치  (0) 2013.09.30
Fedora 17 NFS 설정  (0) 2012.12.10
Fedora17 SAMBA 설정  (0) 2012.12.07
[Linux] .vimrc & mkcscope.sh  (1) 2012.11.23
Posted by eoseontaek
2012. 12. 10. 14:39

http://www.server-world.info/en/note?os=Fedora_17&p=nfs

NFS Server configuration

 

NFS Client configuration

 

 

 

Posted by eoseontaek
2012. 12. 7. 15:33

http://www.cmsfactory.net/node/62

Fedora 16부터는 서비스(Service) 관리를 systemctl이라는 명령어로 합니다. 이전 명령어들도 사용할 수 있지만 systemctl 사용을 권장하고 있습니다. systemctl 명령어의 주요 사용법을 정리합니다.

서비스 상태 확인 하기

서비스 상태 확인은 다음과 같이 합니다.

systemctl status service_name.service

예를 들어 httpd의 상태를 확인하려면 다음과 같이 명령합니다.

systemctl status httpd.service

서비스 시작, 중지, 재시작 하기

서비스를 시작하는 기본 명령 방식은 다음과 같습니다.

systemctl start service_name.service

중지할 때에는 start 대신 stop, 재시작할 때에는 restart를 쓰면 됩니다. 예를 들어 httpd를 시작하려면 다음과 같이 명령한다.

systemctl start httpd.service

중지와 재시작은 다음과 같이 명령하면 된다.

systemctl stop httpd.service
systemctl restart httpd.service

부팅 시 자동 실행 하기

시스템 부팅 시 서비스가 자동 실행되게 하는 명령은 다음과 같습니다.

systemctl enable service_name.service

예를 들어 httpd를 부팅 시 자동 실행되게 하려면 다음과 같이 명령합니다.

systemctl enable httpd.service

자동 실행 되지 않게 하려면 enable 대신 disable을 쓰면 됩니다.

실행 중인 서비스 보기

실행 중인 모든 서비스 목록을 보려면 다음과 같이 명령합니다.

systemctl list-units --type=service

 

 

http://www.howtoforge.com/fedora-17-samba-standalone-server-with-tdbsam-backend

 

1 Preliminary Note

I'm using a Fedora 17 system here with the hostname server1.example.com and the IP address 192.168.0.100.

Please make sure that SELinux is disabled:

Edit /etc/selinux/config and set SELINUX=disabled:

vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Afterwards we must reboot the system:

reboot

2 Installing Samba

Connect to your server on the shell and install the Samba packages:

yum install cups-libs samba samba-common

Edit the smb.conf file:

vi /etc/samba/smb.conf

Make sure you see the following lines in the [global] section:

[...]
# ----------------------- Standalone Server Options ------------------------
#
# security = the mode Samba runs in. This can be set to user, share
# (deprecated), or server (deprecated).
#
# passdb backend = the backend used to store user information in. New
# installations should use either tdbsam or ldapsam. No additional configuration
# is required for tdbsam. The "smbpasswd" utility is available for backwards
# compatibility.
#

        security = user
        passdb backend = tdbsam


[...]

This enables Linux system users to log in to the Samba server.

Then create the system startup links for Samba and start it:

systemctl enable smb.service
systemctl start smb.service

3 Adding Samba Shares

Now I will add a share that is accessible by all users.

Create the directory for sharing the files and change the group to the users group:

mkdir -p /home/shares/allusers
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/

At the end of the file /etc/samba/smb.conf add the following lines:

vi /etc/samba/smb.conf

[...]
[allusers]
  comment = All Users
  path = /home/shares/allusers
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes

If you want all users to be able to read and write to their home directories via Samba, add the following lines to /etc/samba/smb.conf (make sure you comment out or remove the other [homes] section in the smb.conf file!):

[...]
[homes]
   comment = Home Directories
   browseable = no
   valid users = %S
   writable = yes
   create mask = 0700
   directory mask = 0700

Now we restart Samba:

systemctl restart smb.service

4 Adding And Managing Users

In this example, I will add a user named tom. You can add as many users as you need in the same way, just replace the username tom with the desired username in the commands.

useradd tom -m -G users

Set a password for tom in the Linux system user database. If the user tom should not be able to log into the Linux system, skip this step.

passwd tom

-> Enter the password for the new user.

Now add the user to the Samba user database:

smbpasswd -a tom

-> Enter the password for the new user.

Now you should be able to log in from your Windows workstation with the file explorer (address is \\192.168.0.100 or \\192.168.0.100\tom for tom's home directory) using the username tom and the chosen password and store files on the Linux server either in tom's home directory or in the public shared directory.

5 Links

 

 

 

 

 

Posted by eoseontaek

Download Vim script

http://www.vim.org/

 

Source Explorer

SrcExpl a Source code Explorer which works like the context window of "Source Insight"

NERD Tree

The NERD Tree A tree explorer plugin for navigating the filesystem

Tag List

taglist.vim Source code browser (supports C/C++, java, perl, python, tcl, sql, php, etc)

 

 

.vim tree

vim configuration

# cd ~

# vi .vimrc

".........................................."
" vim
".........................................."
set nu
set ai
set ts=4
set bg=dark


".........................................."
" ctags database path
".........................................."
set tags=/home/steo/FH7200/src/kernel/stblinux-2.6.37/tags

".........................................."
" cscope database path
".........................................."
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb

"cscope DB location
cs add /home/steo/FH7200/src/kernel/stblinux-2.6.37/cscope.out /home/steo/FH7200/src/kernel/stblinux-2.6.37
set csverb

".........................................."
" Tag List
".........................................."
filetype on
nmap <F7> :TlistToggle<CR>
let Tlist_Ctags_Cmd = "/usr/bin/ctags"
let Tlist_Inc_Winwidth = 0
let Tlist_Exit_OnlyWindow = 0

let Tlist_Auto_Open = 0
let Tlist_Use_Right_Window = 1

".........................................."
" Source Explorer
".........................................."
nmap <F8> :SrcExplToggle<CR>
nmap <C-H> <C-W>h
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-L> <C-W>l

let g:SrcExpl_winHeight = 8
let g:SrcExpl_refreshTime = 100
let g:SrcExpl_jumpKey = "<ENTER>"
let g:SrcExpl_gobackKey = "<SPACE>"
let g:SrcExpl_isUpdateTags = 0

".........................................."
" NERD Tree
".........................................."
let NERDTreeWinPos = "left"
nmap <F9> :NERDTreeToggle<CR>

 

# vi mkcscope.sh

#!/bin/sh

rm -rf cscope.files cscope.out
find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
cscope -b -i cscope.files

 

 

 

Posted by eoseontaek

리눅스 특정확장자 하위디렉토리까지 일괄삭제

# find /home/id/dir -name "*.ext" -exec rm -rf {} \;

리눅스 특정확장자 피일을 제외하고 일괄삭제

# find . ! -name "*.jsp" -exec rm {} \;

 

 

 

'[D-01] Linux' 카테고리의 다른 글

Fedora17 SAMBA 설정  (0) 2012.12.07
[Linux] .vimrc & mkcscope.sh  (1) 2012.11.23
[Linux] Vi(m) 사용시 ^M 없애기  (0) 2011.11.30
에볼루션(E-mail) 사용하기  (0) 2011.11.26
position-independent 과 relocatable의 차이  (0) 2011.09.09
Posted by eoseontaek

 

http://www.leopit.com/Leophp/board/lecture_board/view.php?id=66&board_mode=linux

vi 에디터 사용시 윈도우에서 작업한 파일에 ^M 문자가 붙는경우가 있습니다.
정말 귀찮기 짝이 없죠. 아래 방법을 참고하시기 바랍니다. KLDP에서 퍼왔습니다.

1. vi(m)이 열린 상태
1.1 문자 치환 명령 이용
다음과 같이 문자 치환 명령으로 이 문자를 없애도록 합니다.
:1,$s/^M//g

물론 이것의 입력은 다음과 같이 하도록 합니다.
:1,$s/[Control]+v+m을 누른다.//g

1.2 파일포맷 변경
vim 5.0 이상에서는 다음과 같이 명령을 내리도록 합니다

:set fileformat=unix
혹은
:set ff=unix
그리고, 저장하고 종료합니다.
:wq

이와 반대로 끝에 ^M붙이려면 다음과 같이 합니다.
:set fileformat=dos

이전버전에서는 다음과 같이 합니다.
:set textmode


2. 프롬프트 상에서
2.1 dos2unix 이용
dos2unix와 unix2dos를 이용하여 변환할 수 있습니다.

다음과 같이 하면 ^M 문자가 없어집니다.
$ dos2unix [문서명](여러 파일의 경우 *.확장자)

그리고 다음과 같이 하면 ^M 문자가 생기죠.
$ unix2dos [문서명]

2.2 cat과 tr을 이용한 방법
다음과 같이 하면 해당 파일의 ^M 문자가 없어집니다.
$ cat dos-file | tr -d ^M > unix-file

2.3 perl 스크립트
다음과 같이 하면 여러파일을 한번에 바꾸게 됩니다.

# perl -i -pe 's/


Posted by eoseontaek
1. gmail 에 가입을 한다.(다른 메일도 가능하지만, 구글이 가장 좋은 환경을 제공한다.)

2. gmail 로 들어가서 환경설정을 들어가면, 메뉴중에 '전달 및 pop/imap' 탭에서 pop기능을 켜둔다.

3. 프로그램-오피스-에볼루션 실행

4. 환영합니다 -> 앞으로

5. 백업에서 복구 -> 앞으로

6. 신상 정보 - 전체이름 : cheonbi
                  - 전자 메일 주소 : cheonbi@gmail.com
                  -> 앞으로

7. 메일 받기 - 서버 종류 : pop
                  - 서버 : pop.gmail.com
                  - 사용자 이름 : cheonbi
                  - 보안 연결 사용 : ssl 암호화
                  - 인증 방법 : '지원하는 방법인지 확인'을 클릭하여 가능한 것으로 선택
                  -> 앞으로

8. 받기 옵션 - 원하는대로 체크
                  -> 앞으로

9. 메일 보내기 - 서버 종류 : smtp
                     - 서버 : smtp.gmail.com
                     - 서버인증 체크
                     - 보안 연결 사용 : ssl 암호화
                     - 인증 방법 : 일반 텍스트, 사용자 이름 : cheonbi
                     -> 앞으로

10. 계정 관리 -> 앞으로

11. 시간대 -> (선택후, 필자는 아시아/서울) 앞으로

12. 완료 -> 적용!

13. 이제 gmail 암호 입력한 후 엔터, 별다른 메시지 없이 메일을 전송 받았으면 성공

네이버, 핫메일 등등에도 같은 방법으로 적용할 수 있습니다.


Link
http://zoozeros.egloos.com/2286446

Posted by eoseontaek
Posted by eoseontaek

Command

scp 전송할파일명 서버로그인아이디@서버아이피:/저장공간



Reference

http://mahome.net/index.php?page=33&mid=normal&document_srl=310

Posted by eoseontaek


Source

#include <stdio.h>

int main()
{
    int i = 0x00000001;

    if( ((char *)&i)[0])
        printf ("Little Endian\n");
    else
        printf ("Big Endian\n");

    return 0;
}


Reference site

http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Network_Programing/Documents/endian#AEN57

http://www.jopenbusiness.com/mediawiki/index.php/Unix_to_Linux_Migration


Posted by eoseontaek
Posted by eoseontaek


man page 설치

yum install man-pages  # 페도라에서 맨 페이지 설치
apt-get install manpages-dev # 우분투에서 맨 페이지 설치
apt-get install manpages-posix-dev # 우분투에서 posix 함수 관련 맨 페이지 설치

Section 번호

맨 페이지에는 명령어 별로 섹션이 분류가 되있으며, 섹션 번호를 이용하면 원하는 명령어의 메뉴얼을 볼 수 있습니다. 섹션 번호는 다음과 같습니다.

Section 1 : user commands

Section 2 : system calls

Section 3 : C library functions

Section 4 : devices and special files

Section 5 : file formats and conventions

Section 8 : system administration tools and deamons

맨 페이지를 사용할 때 ” man [섹션 번호] command ” 와 같이 사용하면 원하는 특정 명령어를 찾을 수 있습니다.

vim에서는 커서를 함수이름에 위치 시킨 후 ” [섹션 번호] Shift + k ” 를 입력하면 맨 페이지로 이동합니다.

출처 : http://openracoon.org/?p=391

Posted by eoseontaek

net_ratelimit()

net_ratelimit()은 printk_ratelimit()와 같은 역할을 합니다. 단지 네트워크 코드에서 사용하기 편하게 하기위해 net_ratelimit() 라는 함수를 따로 정의하였습니다. printk_ratelimit() 함수는 커널 메시지를 지나치게 많이 출력함으로써 시스템의 동작에 영향을 미치는 것을 막기 위해 도입한 함수입니다. 커널 코드는 이 함수를 불러서 일정한 시간 안에 출력한 메시지의 수가 정해진 수 이하인 경우에만 printk()를 호출하여 메시지를 출력합니다.
중요한 메시지의 경우는 이를 사용하지않고 직접 printk()를 호출합니다.



Reference

http://kldp.org/node/45471

http://www.linuxforums.org/forum/kernel/168631-what-net_ratelimit.html

Posted by eoseontaek
Posted by eoseontaek


[root@localhost ~]$ lspci | grep -i vga
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01)

Posted by eoseontaek

# vi /etc/gdm/custom.conf

[daemon]
TimedLoginEnable=true
TimedLogin=(사용자이름)
TimedLoginDelay=0

추가.
Posted by eoseontaek
이전버튼 1 2 3 4 5 이전버튼