레이블이 freebsd인 게시물을 표시합니다. 모든 게시물 표시
레이블이 freebsd인 게시물을 표시합니다. 모든 게시물 표시

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

2009년 11월 3일 화요일

~/.cshrc

h1skies@~%
h1skies@~%
h1skies@~%
h1skies@~%
h1skies@~%
h1skies@~%
h1skies@~% cat .cshrc
# $FreeBSD: src/share/skel/dot.cshrc,v 1.14.8.1 2009/04/15 03:14:26 kensmith Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#

alias h        history 25
alias j        jobs -l
alias la    ls -a
alias lf    ls -FA
alias ll    ls -lA
alias ls    ls -GF

# A righteous umask
umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)

setenv    EDITOR    vi
setenv    PAGER    more
setenv    BLOCKSIZE    K

setenv    LANG    ko_KR.eucKR
setenv    LC_ALL    ko_KR.eucKR
#setenv    LANG    ko_KR.UTF-8
#setenv    LC_ALL    ko_KR.UTF-8

if ($?prompt) then
    # An interactive shell -- set some stuff up
    set filec
    set history = 100
    set savehist = 100
    set mail = (/var/mail/$USER)

    set prompt = "%B${USER}@%~%b% "
    # An interactive shell -- set some stuff up
    set filec
    # set prompt = "%B${USER}@%~%b% "
    # set prompt = "%B{%n@%m}%~%b: "
    # set prompt = '%n@%m:%/%# '
    # set prompt = '%m\:%~# '
    # set prompt = "%B[%b%{^[[0;0;35m%}%n%{^[[0;0;0m%}%B@%b%{^[[0;0;36m%}%m%{^[[0;1;25m%}%B]:%b%~%B%%%b "

    # Word Completion
    set recexact    # Exact word expands as well as beeps
    set autolist    # for command name completion. List matching words.
    set autoexpand    # Expand history when completing
    set autocorrect    # Correct spelling when completing

    # Random
     set correct = cmd    # Spell Correction on
     #set autologout = 30
     set ignoreeof        # ctrl+d not exit
     set noclobber
     #set laststatus = 2
     set watch = (0 any any)
     #set watch = (1 surim any sonnim any adrian any pwardrop any)
    #set nobeep

    if ( $?tcsh ) then
        bindkey "^W" backward-delete-word
        bindkey -k up history-search-backward
        bindkey -k down history-search-forward
    endif
endif
h1skies@~%

실행중인 프로세스 보기

hm#
hm#
hm#
hm#
hm#
hm#
hm#
hm# cat /etc/fstab
# Device        Mountpoint    FStype    Options        Dump    Pass#
/dev/ad0s1b        none        swap    sw        0    0
/dev/ad0s1a        /        ufs    rw        1    1
/dev/ad0s1g        /home        ufs    rw        2    2
/dev/ad0s1e        /tmp        ufs    rw        2    2
/dev/ad0s1f        /usr        ufs    rw        2    2
/dev/ad0s1d        /var        ufs    rw        2    2
/dev/acd0        /cdrom        cd9660    ro,noauto    0    0
proc            /proc        procfs    rw        0    0
hm#
hm#
hm#
hm#
hm# ls /proc
0/       13/      18/      2397/    30/      367/     676/     839/     887/
1/       1315/    19/      24/      31/      37/      7/       860/     888/
10/      1316/    2/       25/      32/      38/      757/     881/     9/
11/      14/      20/      26/      33/      39/      765/     882/     curproc@
1125/    15/      21/      27/      34/      4/       8/       883/
1128/    156/     22/      28/      35/      5/       823/     884/
1130/    16/      23/      29/      351/     6/       829/     885/
12/      17/      2384/    3/       36/      630/     833/     886/
hm#
hm#
hm#

사운드모듈 올리기

hm#
hm#
hm# kldload snd_driver
hm#
hm#
hm# kldstat
Id Refs Address    Size     Name
 1   37 0xc0400000 a100e4   kernel
 2    1 0xc300a000 22000    linux.ko
 3    1 0xc306b000 3000     daemon_saver.ko
33    1 0xc3186000 2000     snd_driver.ko
34    1 0xc318f000 5000     snd_vibes.ko
35   34 0xc3194000 3f000    sound.ko
36    1 0xc31e0000 4000     snd_via82c686.ko
37    1 0xc31f3000 7000     snd_via8233.ko
38    1 0xc3201000 5000     snd_t4dwave.ko
39    3 0xc3206000 3000     snd_spicds.ko
40    1 0xc3209000 5000     snd_solo.ko
41    4 0xc320e000 4000     snd_sbc.ko
42    1 0xc3218000 4000     snd_sb8.ko
43    1 0xc321c000 4000     snd_sb16.ko
44    1 0xc3220000 11000    snd_neomagic.ko
45    2 0xc3231000 a000     snd_mss.ko
46    1 0xc323d000 9000     snd_maestro3.ko
47    1 0xc3258000 8000     snd_maestro.ko
48    1 0xc326c000 6000     snd_ich.ko
49    1 0xc3272000 19000    snd_hda.ko
50    1 0xc3264000 4000     snd_fm801.ko
51    1 0xc328b000 5000     snd_ess.ko
52    1 0xc3290000 8000     snd_es137x.ko
53    1 0xc329f000 7000     snd_envy24ht.ko
54    1 0xc32a6000 8000     snd_envy24.ko
55    1 0xc32ae000 12000    snd_emu10kx.ko
56    1 0xc32c4000 b000     snd_ds1.ko
57    2 0xc32df000 7000     snd_csa.ko
58    1 0xc32ea000 5000     snd_cs4281.ko
59    1 0xc32f4000 5000     snd_cmi.ko
60    1 0xc332c000 6000     snd_atiixp.ko
61    1 0xc3332000 5000     snd_als4000.ko
62    1 0xc3337000 4000     snd_ad1816.ko

사용하지 않는 사운드 모듈까지 올라와 있다.

hm#
hm#
hm#
hm# cat < /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <CMedia CMI8738> at io 0x9800 irq 10 kld snd_cmi [MPSAFE] (1p:1v/1r:1v channels duplex default)
hm#
hm#


시스템 시작시 자동으로 사운드 모듈 올리기

hm# vim /boot/loader.conf
#snd_driver_load="YES"   ##사운드모듈 전부 (원하지 않는 사운드 모듈 전부 올라온다.)
snd_cmi_load="YES"       ## 나만의 사운드모듈만 올리기
hm#
hm#
hm#
hm# kldunload snd_driver
hm#
hm# kldstat
Id Refs Address    Size     Name
 1    7 0xc0400000 a100e4   kernel
 2    1 0xc300a000 22000    linux.ko
 3    1 0xc306b000 3000     daemon_saver.ko
hm#
hm#
hm#
hm#  
hm# kldload snd_cmi
hm#
hm# kldstat
Id Refs Address    Size     Name
 1    9 0xc0400000 a100e4   kernel
 2    1 0xc300a000 22000    linux.ko
 3    1 0xc306b000 3000     daemon_saver.ko
62    1 0xc318f000 5000     snd_cmi.ko
63    2 0xc3194000 3f000    sound.ko
hm#
hm#
hm#