投稿

12月, 2010の投稿を表示しています

lspci(8) - 使い方

lspci(8)の使い方の例。 概要 pciデバイスの認識状況を表示するコマンドツール 使い方 NEC製VersaProR VA15X(PC-VA15XRF)での実行結果 # lspci -v 00:00.0 Host bridge: ATI Technologies Inc RS200/RS200M AGP Bridge [IGP 340M] (rev 02)         Flags: bus master, 66MHz, medium devsel, latency 64         Memory at f8000000 (32-bit, prefetchable) [size=64M]         Memory at f4800000 (32-bit, prefetchable) [size=4K]         Capabilities: [a0] AGP version 2.0 00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M] (prog-if 00 [Normal decode])         Flags: bus master, 66MHz, medium devsel, latency 99         Bus: primary=00, secondary=01, subordinate=01, sec-latency=68         I/O behind bridge: 0000a000-0000afff         Memory behind bridge: f4500000-f45fffff         Prefetchable memory behind bridge: ...

setsebool(8) - 使い方

setsebool(8)の使い方の例 概要 SELinuxの組み込みルールの有効/無効状態(boolean)を設定するコマンドツール

getsebool(8) - 使い方

getsebool(8)の使い方の例。 概要 SELinuxの組み込みルールの有効/無効状態(boolean)を確認するコマンドツール

service(8) - 使い方

service(8)の使い方の例 概要 常駐プログラムの起動、停止などを行うコマンドツール 使い方 サービスを起動する(httpdの例) [root@localhost ~]# service httpd status httpd は停止しています [root@localhost ~]# service httpd start httpd を起動中:                                            [  OK  ] [root@localhost ~]# (service --status-all | grep httpd) 2> /dev/null httpd (pid  16078) を実行中... [root@localhost ~]# サービスを停止する(httpdの例) [root@localhost ~]# service httpd status httpd (pid  16018) を実行中... [root@localhost ~]# service httpd stop httpd を停止中:                                            [  OK  ] [root@localhost ~]# (service --status-all | grep httpd) 2> /dev/null httpd は停止しています [root@localhost ~]# 以上

SELinuxその1 - 使い方

SELinuxの使い方の例。 概要 SELinuxの使い方その1。 使い方 セキュリティコンテキストの見方 兼 ユーザのセキュリティコンテキストを確認する SELinuxが有効な状態で、id -Zを実行するとユーザのセキュリティコンテキストが確認出来る。 $ id -Z user_u:system_r:initrc_t:s0 それぞれ左から順番に、ユーザ識別子、ロール識別子、タイプ識別子、MLS識別子を表す。 user_u   ユーザ識別子 system_r ロール識別子 initrc_t タイプ識別子 s0       MLS識別子 プロセスのセキュリティコンテキストを確認する $ ps -Z LABEL                             PID TTY          TIME CMD user_u:system_r:initrc_t:s0       987 pts/1    00:00:00 ps user_u:system_r:initrc_t:s0     32623 pts/1    00:00:00 bash ファイルのセキュリティコンテキストを確認する $ ls -Z drwxr-xr-x  owner owner system_u:object_r:file_t:s0      Desktop drwx------  owner owner system_u:object_r:file_t:s0      mail SELinuxの動作状態を確認する $ /usr/sbin/getenforce Enforcing SELinuxの動作状態を変更する ...

e2label(8) - 使い方

e2labelの使い方の例 概要 ファイルシステムにラベルを付与するコマンドツール 使い方 パーティションを指定しラベルを付ける # e2label /dev/sdb1 # e2label /dev/sdb1 archives # e2label /dev/sdb1 archives # 以上

mke2fs(8)の使い方の例

概要 ファイルシステムを作成するコマンドツール 使い方 ext3ファイルシステムを作成する # mke2fs -j /dev/sdb1 mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 8962048 inodes, 17921815 blocks 896090 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 547 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks:         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,         4096000, 7962624, 11239424 Writing inode tables: done                            Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 27 mounts or 180 days, whichever comes first.  Use tune2fs -c or -i to override...

tar(1)の使い方の例

概要 ファイルやディレクトリをアーカイブするコマンドツール。 使い方 (1)ファイルを圧縮保存する # ls -l Cent*img* -rw------- 1 root root 10485760000 11月 29 14:45 CentOS5.5ga.img # tar zcvf CentOS5.5ga.img.tgz CentOS5.5ga.img CentOS5.5ga.img # ls -l Cent*img* -rw------- 1 root root 10485760000 11月 29 14:45 CentOS5.5ga.img -rw-r--r-- 1 root root  1175757117 12月  7 09:10 CentOS5.5ga.img.tgz 以上

vncserverの設定例 - CentOS/RHEL

vncserverの設定方法を示す。 概要 rootユーザーとownerユーザーを設定する例を記載。 内容 /etc/sysconfig/vncserversの編集 (変更後) VNCSERVERS="1:root 2:owner" VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -nohttpd" (変更前) # VNCSERVERS="2:myusername" # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost" vncパスワードの設定 # su - owner $ vncpasswd Password: Verify: $ exit # vncpasswd Password: Verify: vncserverサービスの有効化 # chkconfig --list | grep vncserver vncserver       0:off   1:off   2:off   3:off   4:off   5:off   6:off # chkconfig vncserver on # chkconfig --list | grep vncserver vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off # vncserverサービスの起動 # service vncserver start VNC サーバー を起動中: 1:root xauth:  creating new authority file /root/.Xauthority New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:...

吉野家

イメージ
国道1号を渡った先、横浜市街地方面に向かう途中に「吉野家」。 尻手駅前に、「すき家」があるのでこちらを利用することは殆ど無いが、偶に無性に食べたくなる。 地図はこちら。 より大きな地図で 最寄駅は尻手駅 を表示

大木商店

尻手商店街を抜け、良忠寺門前を右に曲がって、更に進んだところに、ヤマザキショップ「大木商店」がある。 すぐ近くの大木米店横で灯油も購入可能で、この近所に住んでいるなら利用しない手はない。 週刊誌は良くここで買っている。 より大きな地図で 最寄駅は尻手駅 を表示