Linux > その他

nfs

NFSサーバのディレクトリを確認(localhost → 192.168....)

# showmount -e localhost

autofs

Ubuntu 10.04でのインストール

 autofsをインストール

#apt-get install autofs

 /etc/auto.master内の最終行を修正

+auto.master

↓(auto.localを参照するように設定)

#+auto.master
/local   auto.local

再起動、もしくは autofsのデーモンを起動

#chkconfig autofs on

使用する際は/local/に移動して、auto.local内のディレクトリに移動

$cd /local/[directory]

mozc(Google IME for Linux)のインストール

Google IMEの公式(Windows 7、Vista SP1 以降 XP SP2 以降) http://www.google.co.jp/intl/ja/ime/

辞書のインストール

http://river.ie-t.net/2010/05/30/134.html

fedora13

#yum install mozc ibus-mozc

Ubuntu 10.10

#apt-get install ibus-mozc

一度ログアウトした後、「システム」→「設定」→「キーボード・インプットメソッド」 「インプットメソッド」タブから「インプットメソッドの選択」→「日本語」→「mozc」 「mozc」を一番上にして完了

ImageMagick

 ファイルの圧縮、画面のキャプチャに利用。

convert

  • eps画像の圧縮
    $convert file1.xxx file2.eps
    
  • 同じサイズの画像を結合
  1. appendで左右方向, -appendで上下方向に.
       convert +append magick1.gif magick2.gif magick-append.gif
    
  • 画像を縮小 横を600pxに縮小
    convert -resize 600x source.jpg outfile.eps
    

http://d.hatena.ne.jp/weblinuxmemo/20090929/p1

import

Xの画面をキャプチャ

$import 出力ファイル

マウスのカーソルが変化するので、取り込む範囲を選択。 画面全体をキャプチャするときは、

$import -window root

LinuxでCPUの温度・ファンの回転数などを調べる

lm_sensorsを使う。sensors-detectでセンサーの検出を行う。

#sensors-detect

いくつかの質問にyes/noで答える。すべてyesで構わない。

+ 例:
root@Perrine:~# sensors-detect
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100)
# System: Unknow Unknow
# Board: JETWAY HA06

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
Intel Core family thermal sensor...                         No
Intel Atom thermal sensor...                                No
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
Found `Fintek F71882FG/F71883FG Super IO Sensors'           Success!
    (address 0x225, driver `f71882fg')

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): yes
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (yes/NO): yes
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Using driver `i2c-piix4' for device 0000:00:14.0: ATI Technologies Inc SB600/SB700/SB800 SMBus
Module i2c-dev loaded successfully.

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `f71882fg':
  * ISA bus, address 0x225
    Chip `Fintek F71882FG/F71883FG Super IO Sensors' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
f71882fg
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)yes
Successful!

Monitoring programs won't work until the needed modules are
loaded. You may want to run '/etc/init.d/module-init-tools start'
to load them.

Unloading i2c-dev... OK

再起動。sensorsで状態を確認

$sensors

参考URL

ImageMagick http://vision.kuee.kyoto-u.ac.jp/~nob/doc/imagemagick/imagemagick.html http://mechanics.civil.tohoku.ac.jp/soft/node43.html

最終更新:2011年10月03日 17:58