忍者ブログ

[PR]

2024年05月04日 ()
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

install rxvt-unicode from source

2009年02月16日 (linux)

rxvt-unicode

UNICODE対応のターミナルエミュレータ.

環境

  • kernel: 2.6.18-92.el5
  • gcc: 4.1.2
  • binutils: 2.17.50.0.6-6.el5

インストール

# cd /usr/local/src/
# wget http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.06.tar.bz2
# cd rxvt-unicode-9.06
# tar jxvf rxvt-unicode-9.06.tar.bz2
# patch -p1 <doc/urxvt-8.2-256color.patch
# ./configure \
# --with-x \
# --with-codesets=all \
# --enable-xim \
# --enable-unicode3 \
# --enable-afterimage \
# --enable-xft \
# --enable-font-styles \
# --enable-mousewheel \
# --prefix=/home/aki/TEST/urxvttest \
# --with-term=rxvt-256colors
# make
# make install
# ../urxvttest/bin/urxvt
PR

mount fat32 file system

2009年02月01日 (linux)

windowsのファイルシステムでフォーマットしたフラッシュメモリをマウントするには,

# mount -t msdos /dev/sdb1 /mnt

のようにする.が,これだとmsdosのファイル形式になるので・・

# ls /mnt/

とするとmsdosのファイル名の形式に合わさられて文字化けしたみたいになる.具体的には「script.sh」が「scr~.sh」みたいになる.

# mount -t vfat /dev/sdb1 /mnt

とすると文字化けっぽいのが起こらない.

glibc version

2009年01月20日 (linux)

glibcのバージョンを調べる.

% /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20070626 (Red Hat 4.1.2-14).
Compiled on a Linux 2.6.9 system on 2008-05-23.
Available extensions:
    The C stubs add-on version 2.1.2.
    crypt add-on version 2.1 by Michael Glad and others
    GNU Libidn by Simon Josefsson
    GNU libio by Per Bothner
    NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
    Native POSIX Threads Library by Ulrich Drepper et al
    BIND-8.2.3-T5B
    RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

cpuinfo, meminfo

2009年01月20日 (linux)

CPUの情報,メモリの情報を調べるにはprocファイルシステムを見る.procなので正確.
CPUの情報を調べる.

% cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Celeron(R) CPU 2.53GHz
stepping        : 1
cpu MHz         : 2533.569
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc up pni monitor ds_cpl tm2 cid cx16 xtpr
bogomips        : 5069.95

メモリの情報を調べる.

% cat /proc/meminfo
MemTotal:      2072120 kB
MemFree:       1456288 kB
Buffers:         94744 kB
Cached:         306184 kB
SwapCached:          0 kB
Active:         231624 kB
Inactive:       287888 kB
HighTotal:     1176056 kB
HighFree:       737404 kB
LowTotal:       896064 kB
LowFree:        718884 kB
SwapTotal:     2031608 kB
SwapFree:      2031608 kB
Dirty:               4 kB
Writeback:           0 kB
AnonPages:      118612 kB
Mapped:          46488 kB
Slab:            78612 kB
PageTables:       2628 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   3067668 kB
Committed_AS:   320020 kB
VmallocTotal:   114680 kB
VmallocUsed:     45412 kB
VmallocChunk:    63988 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     4096 kB

install cvs from source

2009年01月05日 (linux)

cvs

Concurrent Version System.
単一ファイルを対象としたバージョン管理ツール.

環境

  • kernel: 2.6.18-92.el5
  • gcc: 4.1.2
  • binutils: 2.17.50.0.6-6.el5

インストール

# cd /usr/local/src
# wget http://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cvs-1.11.23.tar.bz2
# tar jxf cvs-1.11.23.tar.bz2
# cd cvs-1.11.23.tar.bz2
# ./configure
# make
# make install

テスト

時間ない.省略.

 | HOME | 次のページ »