メモリの調査

4 月 20th, 2011

$ sudo /usr/sbin/dmidecode –type 17

Type   Information
—————————————-
0   BIOS
1   System
2   Base Board
3   Chassis
4   Processor
5   Memory Controller
6   Memory Module
7   Cache
8   Port Connector
9   System Slots
10   On Board Devices
11   OEM Strings
12   System Configuration Options
13   BIOS Language
14   Group Associations
15   System Event Log
16   Physical Memory Array
17   Memory Device
18   32-bit Memory Error
19   Memory Array Mapped Address
20   Memory Device Mapped Address
21   Built-in Pointing Device
22   Portable Battery
23   System Reset
24   Hardware Security
25   System Power Controls
26   Voltage Probe
27   Cooling Device
28   Temperature Probe
29   Electrical Current Probe
30   Out-of-band Remote Access
31   Boot Integrity Services
32   System Boot
33   64-bit Memory Error
34   Management Device
35   Management Device Component
36   Management Device Threshold Data
37   Memory Channel
38   IPMI Device

39   Power Supply
40   Additional Information
41   Onboard Device


Linuxで削除ファイルを復元する

12 月 13th, 2009

まずはphotorecを使用して削除ファイルを復活させます。
この際元のファイル名ではなく、適当な文字の羅列で復元されるため、
下のjheadなどを利用した処理が必要になります。
※復元したい領域とは別の領域にファイルを書き出してください。
そうしないと上書きされてしまい復元率が下がってしまいます。

apt-get install testdisk
photorec
以下のページなどを参照してください。

http://pctrouble.lessismore.cc/software/photorec.html

http://www.emxas.co.jp/itblog/item_187.html

apt-get install jhead
Exif情報を利用して、ファイルを探し出し、ファイル名を変更します。
jhead -exonly -model E-410 -nE-410-%Y%m%d-%H%M%S recup_dir.*/*.jpg
E-410-YYYYMMDD-HHMMSSというファイル名に変更される

特定のファイルを別ディレクトリに移動します。
find ./ -name “E-410*.jpg” -print0 | xargs -0 /bin/mv -t /home/taka/

おわり

Ubuntu 9.04 で Tracker Index corrupted

5 月 1st, 2009

Tracker
There was an error while performing indexing:

Index corrupted

というエラーが大量に出るようになった。
これは既知のバグだそうで。
tracker-processes -r
を実行すると直る。
tracker-processes コマンドがない場合は
sudo apt-get install tracker-utils
を実行。

ubuntu linuxにopenofficeをインストールして、サーバ上でPDFを作成

10 月 21st, 2008

wget ftp://ftp.riken.jp/OpenOffice/localized/ja/3.0.0/OOo_3.0.0_LinuxIntel_install_wJRE_ja.tar.gz

yum install yum install Xvfb
Xvfb :1 -screen scrn 1024×768x24 &

yum install libXext.so.6
yum install libXtst.so.6
yum install libXi.so.6

yum install libSM.so.6

yum install libfreetype.so.6 libgnomevfs-2.so.0 libgconf-2.so.4
cd RPMS/
rpm -i *.rpm
/opt/openoffice.org3/program/soffice -headless -accept=”socket,port=8100;urp;”
(これは必要ないかな)

CUPS-PDFをインストールして

w3m http://localhost:631
でテストのPDFが作成できることを確認

/opt/openoffice.org3/program/soffice -norestore -invisible -nologo -headless -pt CUPS-PDF /tmp/WebFileQA.xls

で、できるはずなんだけど、PDFが作成されない。。。
分かる人教えてください。

linux, cygwinでクッキングタイマー

9 月 1st, 2008

$ sleep 180;echo -e ‘\a’

3分後にBEL音が鳴ります。

yumでdigやnslookupをインストール

8 月 3rd, 2008

# yum install bind-utils

sshで.ssh配下のid_rsaを使いたくない場合

6 月 20th, 2008

svn用にログインできないアカウントを用意している場合
ローカル側.sshディレクトリに既にid_rsaやid_dsaがある。
でも、sshでコンソールにログインしたい場合、普通にsshログインしようとするとパスワードを聞いずログインエラーになってしまう。
そういう時は
-oIdentityFile=no
オプションをつけるとパスワードを聞いてくれる。

CentOS 5.0でCPUを使い切っていた。。

5 月 22nd, 2008

topで確認すると

/usr/bin/sealer

が、動いている。

このサービスはいらなそうなので
/etc/init.d/setroubleshoot stop

で止めたら正常になりました。

aa

5 月 4th, 2008

bb