2010년 1월 30일 토요일

centos 5.4 한글화면

centos 5.4 처음 설치에서 한글 메뉴로의 설치가 불가능하여 영문으로 설치하고 나서 한글로 전환할때.

1. 프로그램 > 소프트웨어 추가/삭제 > 검색 >> 언어지원(Language) > 한국어를 선택
2. 시스템 > 관리 > 언어 > 한국어 를 선택한다.,



centos ifconfig명령 PATH추가

centos ifconfig명령 PATH추가

centos 5.4를 설치하고 ifconfig 명령이 실행 안된다.
~/.bash_profile 에서
PATH에 /sbin 경로를 추가하여 해결한다.

[h1skies@localhost ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
PATH=$PATH:/sbin

export PATH
[h1skies@localhost ~]$

==============================================================
참고:
http://www.troubleshooters.com/linux/prepostpath.htm

Troubleshooters.Com and T.C Linux Library Present
Adding a Directory to the Path
Copyright (C) 2002 by Steve Litt
[ Linux Library | Troubleshooters.Com | Email Steve Litt | Copyright Notice ]

Debug like a Ninja
Contents:

    * Disclaimer
    * Pre and Post Pathing
    * Adding to a Single User's Path
    * Adding to All Users' Paths (except root)
    * Adding to the Path of User root
    * Summary

Executive Summary
Adding a directory to the path of a user or all users would seem trivial, but in fact it isn't. The best place to add a directory to the path of a single user is to modify that user's .bash_profile file. To add it to all users except user root, add it to /etc/profile. To also add it to the path of user root, add it to root's .bash_profile file.

Disclaimer
Obviously, you use this document at your own risk. I am not responsible for any damage or injury caused by your use of this document, or caused by errors and/or omissions in this document. If that's not acceptable to you, you may not use this document. By using this document you are accepting this disclaimer.
Pre and Post Pathing

Linux determines the executable search path with the $PATH environment variable. To add directory /data/myscripts to the beginning of the $PATH environment variable, use the following:

PATH=/data/myscripts:$PATH

To add that directory to the end of the path, use the following command:

PATH=$PATH:/data/myscripts

But the preceding are not sufficient because when you set an environment variable inside a script, that change is effective only within the script. There are only two ways around this limitation:

   1. If, within the script, you export the environment variable it is effective within any programs called by the script. Note that it is not effective within the program that called the script.
   2. If the program that calls the script does so by inclusion instead of calling, any environment changes in the script are effective within the calling program. Such inclusion can be done with the dot command or the source command. Examples:
      . $HOME/myscript.sh
      source $HOME/myscript.sh

Inclusion basically incorporates the "called" script in the "calling" script. It's like a #include in C. So it's effective inside the "calling" script or program. But of course, it's not effective in any programs or scripts called by the calling program. To make it effective all the way down the call chain, you must follow the setting of the environment variable with an export command.

As an example, the bash shell program incorporates the contents of file .bash_profile by inclusion. So putting the following 2 lines in .bash_profile:

PATH=$PATH:/data/myscripts
export PATH

effectively puts those 2 lines of code in the bash program. So within bash the $PATH variable includes $HOME/myscript.sh, and because of the export statement, any programs called by bash have the altered $PATH variable. And because any programs you run from a bash prompt are called by bash, the new path is in force for anything you run from the bash prompt.

The bottom line is that to add a new directory to the path, you must append or prepend the directory to the $PATH environment variable within a script included in the shell, and you must export the $PATH environnment variable. The only remaining question is: In which script do you place those two lines of code?
Adding to a Single User's Path

To add a directory to the path of a single user, place the lines in that user's .bash_profile file. Typically, .bash_profile already contains changes to the $PATH variable and also contains an export statement, so you can simply add the desired directory to the end or beginning of the existing statement that changes the $PATH variable. However, if .bash_profile doesn't contain the path changing code, simply add the following two lines to the end of the .bash_profile file:

PATH=$PATH:/data/myscripts
export PATH

Adding to All Users' Paths (except root)

You globally set a path in /etc/profile. That setting is global for all users except user root. Typical /etc/profile files extensively modify the $PATH variable, and then export that variable. What that means is you can modify the path by appending or prepending the desired directory(s) in existing statements modifying the path. Or, you can add your own path modification statements anywhere before the existing export statement. In the very unlikely event that there are no path modification or export statements in /etc/profile, you can insert the following 2 lines of code at the bottom of /etc/profile:

PATH=$PATH:/data/myscripts
export PATH

Adding to the Path of User root
User root is a special case, at least on Mandrake systems. Unlike other users, root is not affected by the path settings in /etc/profile. The reason is simple enough. User root's path is set from scratch by its .bash_profile script. In order to add to the path of user root, modify its .bash_profile.

Summary
A fundimental administration task is adding directories to the execution paths of one or more users. The basic code to do so is:

PATH=$PATH:/data/myscripts
export PATH

Place that code, or whatever part of that code isn't already incorporated, in one of the following places:

User Class
    Script to modify
One user
    $HOME/.bash_profile
All users except root
    /etc/profile
root
    /root/.bash_profile

===========================================================
http://www.linuxforums.org/forum/linux-newbie/91912-how-set-path.html

Use one of the following lines in your '.cshrc' file (depending on where in the path you want your directories):

Code:
set path = ( <*> $path )
set path = ( $path <*> )

<*> = "list of one or more paths separated by spaces"
Also, you do not need to be root -- just edit your '.cshrc' file as a normal user...
__________________
* Linux 101 * Linux 102 * Computer 101 * Software 101 *
-
-
Remember: amateurs built the ark... professionals built the Titanic

2010년 1월 1일 금요일

My irssi--config

irssi

# cd /usr/ports/irc/irssi
# make install clean

# irssi

[(status)] /set recode on
[(status)] /set recode_fallback euckr
[(status)] /set recode_out_default_charset euckr
[(status)] /set recode_transliterate on
[(status)]
[(status)]
[(status)] /set timestamp_format %H:%M:%S
[(status)] /save
[(status)] /q <nick>
[(status)] /SERVER ADD -auto -network hanirc irc.hanirc.org 6667
[(status)]
[(status)] /SET autolog ON
[(status)]
[(status)]
[(status)] /save

------------------------------------------------------------
# vim ~/.irssi/config
servers = (
  { address = "eu.irc6.net"; chatnet = "IRCnet"; port = "6667"; },
  { address = "irc.webchat.org"; chatnet = "WebChat"; port = "6667"; },
  { address = "irc.rizon.net"; chatnet = "Rizon"; port = "6667"; },
  { address = "irc.link-net.org"; chatnet = "LinkNet"; port = "6667"; },
  { address = "silc.silcnet.org"; chatnet = "SILC"; port = "706"; },
  {
    address = "irc.hanirc.org";
    chatnet = "hanirc";
    port = "6667";
    use_ssl = "no";
    ssl_verify = "no";
    autoconnect = "yes";
  },
  {
    address = "purple.hanirc.org";
    chatnet = "HanIRC";
    port = "6664";
    password = "password";
    use_ssl = "no";
    ssl_verify = "no";
    autoconnect = "no";
  }
);
~
~
channels = (
  { name = "#irssi"; chatnet = "ircnet"; autojoin = "No"; },
  { name = "silc"; chatnet = "silc"; autojoin = "No"; },
  { name = "#freebsd"; chatnet = "hanirc"; autojoin = "Yes"; },
  { name = "#ubuntu"; chatnet = "hanirc"; autojoin = "Yes"; }
);
~
~
settings = {
  core = {
    real_name = "User H1skiesKim Donggyu";
    user_name = "h1skies";
    nick = "h1skies";
    recode_fallback = "euckr";
    recode_out_default_charset = "euckr";
    recode = "yes";
    timestamp_format = "%H:%M:%S";
  };
  "fe-text" = { actlist_sort = "refnum"; };
  "fe-common/core" = { autolog = "yes"; };
};
logs = { };
h1skies@~/.irssi%
------------------------------------------------------------------------

채널 이동
ESC+1, ESC+2, ....

이전글 보기
page up / page down키 사용


[(status)] /q <nick>
[(status)] /q   또는 /wc   ### /wc (an alias for /window close). /part will not work.
[(status)] /server irc.hanirc.org    또는
[(status)] /server irc.hanirc.org 6667
[(status)] /connect purpl.hanirc.org   ###open a new network connection
[(status)] /join #freebsd
[(status)] /disconnect
[(status)]

# cd ~/irclogs