goo blog サービス終了のお知らせ 

PCに関する雑多な記録

PCに関する諸々の備忘録に変身。

firefoxの消費メモリを減らす

2009年06月11日 | 雑多なこと
 長い間使っていると、Firefoxのプロセスが300MB!を超えることがある。どうやら、履歴を管理している組み込みdbがメモリを無駄に消費しているらしい。履歴を消去すると、次の起動から軽快になる。
 Windowsの32bit版はファイルシステムがへたれなので、Firefoxの終了が異常なくらい遅くなるのも、最後にメモリを確保して何か処理をしたいのだが、SWAPにアクセスして時間がかかっているような印象をうける。

StarNet X-WIN 9.3

2009年02月09日 | 雑多なこと
 Windows用のX-Serverです。今でこそ普通に使う分には、Xmingなんかで困らないのですが、まだ不安定なところがあった頃から使っているstarnet.comのX-Win32というのがあります。
 去年の10月頃にバージョンアップしていたらしく、esoundへの対応と日本語IMEへの対応が行われていました。過去の記事でGNOMEの事を書いていますが、ESPEAKERをWindowsに設定することが可能になりました。
 また、日本語関連のサポートが強化されて、ASTEC-Xなんかと同じようにXクライアントに対して、WindowsのIMEで日本語の入力ができるようになりました。

LC_CYPTE=ja_JP
XMODIFIERS=@im=XIME

のようにすることで、日本語が入力できるようになります。

結構日本語でもいい感じで使えるようになっているのかも。

VMWare Server で仮想ディスクの管理

2007年11月22日 | 雑多なこと
VMWare Serverを使っている場合にDiskの作成・管理を行うツールは、

vmware-vdiskmanager.exe

で、ヘルプには、

VMware Virtual Disk Manager - build 56528.
Usage: vmware-vdiskmanager.exe OPTIONS diskName | drive-letter:
Offline disk manipulation utility
Options:
-c : create disk; need to specify other create options
-d : defragment the specified virtual disk
-k : shrink the specified virtual disk
-n <source-disk> : rename the specified virtual disk; need to
specify destination disk-name
-p : prepare the mounted virtual disk specified by
the drive-letter for shrinking
-q : do not log messages
-r <source-disk> : convert the specified disk; need to specify
destination disk-type
-x <new-capacity> : expand the disk to the specified capacity

Additional options for create and convert:
-a <adapter> : (for use with -c only) adapter type (ide, buslogic o
r lsilogic)
-s <size> : capacity of the virtual disk
-t <disk-type> : disk type id

Disk types:
0 : single growable virtual disk
1 : growable virtual disk split in 2Gb files
2 : preallocated virtual disk
3 : preallocated virtual disk split in 2Gb files

The capacity can be specified in sectors, Kb, Mb or Gb.
The acceptable ranges:
ide adapter : [100.0Mb, 950.0Gb]
scsi adapter: [100.0Mb, 950.0Gb]
ex 1: vmware-vdiskmanager.exe -c -s 850Mb -a ide -t 0 myIdeDisk.vmdk
ex 2: vmware-vdiskmanager.exe -d myDisk.vmdk
ex 3: vmware-vdiskmanager.exe -r sourceDisk.vmdk -t 0 destinationDisk.vm
dk
ex 4: vmware-vdiskmanager.exe -x 36Gb myDisk.vmdk
ex 5: vmware-vdiskmanager.exe -n sourceName.vmdk destinationName.vmdk
ex 6: vmware-vdiskmanager.exe -k myDisk.vmdk
ex 7: vmware-vdiskmanager.exe -p m:
(A virtual disk first needs to be mounted at m:
using the VMware Diskmount Utility.)

とある。元々作っておいたディスクを2GB分割で容量固定にするなら、
vmware-vdiskmanager.exe -r [source] -t 3 [dest]
とすればいい(らしい。まだ試していない)

Linuxのパッケージマネージャーで特定のパッケージを除外する方法

2007年04月10日 | 雑多なこと
1. apt(Vine Linux)
Vine Linux 4.xのaptから特定のパッケージを除外する方法
/etc/apt/preferencesに

Package: MySQL-server
Pin: version 4.1.22
Pin-Priority: 1001

のように記述する。Packageに*が使えればいい感じなんだけど、なんかダメかも..

2. yum(FedoraCore/CentOS)
/etc/yum.conf

exclude=MySQL-*

のように記述する。yumはワイルドカードが使えて結構楽。

javaの設定

2005年12月07日 | 雑多なこと
javaはjava.comからLinux rpm形式をダウンロードして、手順に従ってインストールする。
 ただ、最近のFedoraCoreはGCCのJavaがインストールされていて、さらにalternativesという機構で/usr/bin/javaにリンクされているために、ちょっと扱いづらいところがあったりする。
 で、以下のコマンドを打てば、ちゃんとalternativesに登録されるので、後はalternativesの流儀に従って設定すればちゃんとjavaが動く。

alternatives --install /usr/bin/java java /usr/java/jre1.5.0_03/bin/java 2

jre1.5.0_03は、バージョンによって異なるので注意

#おまけ#
javaが文字化けするときは、fontconfig.propertiesをいじる。
TurboLinuxあたりをパクるのが簡単かも。
いちおおういかに特殊な設定結果...
-- from here --
# @(#)linux.fontconfig.Turbo.properties 1.5 04/04/01
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
#

# Version

version=1
# Component Font Mappings

allfonts.chinese-gbk=-tlc-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0
allfonts.chinese-gb2312=-tlc-songti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0
allfonts.chinese-iso10646=-tlc-songti-medium-r-normal--*-%d-*-*-c-*-iso10646-1
allfonts.chinese-big5=-tlc-songti-medium-r-normal--*-%d-*-*-c-*-big5-0
allfonts.lucida=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1

serif.plain.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
serif.plain.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1

serif.bold.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
serif.bold.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1

serif.italic.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
serif.italic.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1

serif.bolditalic.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
serif.bolditalic.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1

sansserif.plain.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
sansserif.plain.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1

sansserif.bold.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
sansserif.bold.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1

sansserif.italic.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
sansserif.italic.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1

sansserif.bolditalic.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
sansserif.bolditalic.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1

monospaced.plain.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
monospaced.plain.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1

monospaced.bold.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
monospaced.bold.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1

monospaced.italic.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
monospaced.italic.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1

monospaced.bolditalic.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
monospaced.bolditalic.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1

dialog.plain.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialog.plain.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1

dialog.bold.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialog.bold.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1

dialog.italic.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialog.italic.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1

dialog.bolditalic.japanese-x0201=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialog.bolditalic.japanese-x0208=-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1

dialoginput.plain.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialoginput.plain.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1

dialoginput.bold.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialoginput.bold.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1

dialoginput.italic.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialoginput.italic.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1

dialoginput.bolditalic.japanese-x0201=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0
dialoginput.bolditalic.japanese-x0208=-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1


# Search Sequences

sequence.allfonts=latin-1
sequence.allfonts.Big5=latin-1,chinese-big5
sequence.allfonts.Big5-HKSCS=latin-1,chinese-big5
sequence.allfonts.GB18030=latin-1,chinese-gbk,chinese-iso10646
sequence.allfonts.GBK=latin-1,chinese-gbk
sequence.allfonts.GB2312=latin-1,chinese-gb2312
sequence.allfonts.x-euc-jp-linux=latin-1,japanese-x0208,japanese-x0201
sequence.allfonts.UTF-8.ja.JP=latin-1,japanese-x0208,japanese-x0201,chinese-iso10646
sequence.allfonts.UTF-8.zh=latin-1,chinese-iso10646,japanese-x0208,japanese-x0201
sequence.fallback=lucida,chinese-big5,chinese-iso10646,japanese-x0208

# Exclusion Ranges
exclusion.japanese-x0201=0390-03d6,2200-22ef,2701-27be
exclusion.japanese-x0208=0390-03d6,2200-22ef,2701-27be

# Font File Names
filename.-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaSansRegular.ttf
filename.-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaBrightRegular.ttf
filename.-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaBrightDemiBold.ttf
filename.-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaBrightItalic.ttf
filename.-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaBrightDemiItalic.ttf
filename.-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaSansDemiBold.ttf
filename.-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaSansRegular.ttf
filename.-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1=$JRE_LIB_FONTS/LucidaSansDemiBold.ttf
filename.-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1=$JRE_LIB_FONTS/LucidaTypewriterRegular.ttf
filename.-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1=$JRE_LIB_FONTS/LucidaTypewriterBold.ttf
filename.-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1=$JRE_LIB_FONTS/LucidaTypewriterRegular.ttf
filename.-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1=$JRE_LIB_FONTS/LucidaTypewriterBold.ttf

filename.-tlc-songti-medium-r-normal--*-%d-*-*-c-*-big5-0=/usr/share/fonts/zh_TW/TrueType/bsmi00lp.ttf
filename.-tlc-songti-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/dwstzk.ttf
filename.-tlc-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0=/usr/share/fonts/zh_CN/TrueType/dwstzk.ttf
filename.-tlc-songti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0=/usr/share/fonts/zh_CN/TrueType/dwstzk.ttf
filename.-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0=/opt/fonts/ja/TrueType/msgothic.ttc
filename.-Ricoh-MS Gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/opt/fonts/ja/TrueType/msgothic.ttc
filename.-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0=/opt/fonts/ja/TrueType/msmincho.ttc
filename.-Ricoh-MS Mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/opt/fonts/ja/TrueType/msmincho.ttc


# AWT X11 font paths
awtfontpath.chinese-big5=/usr/share/fonts/zh_TW/TrueType
awtfontpath.chinese-gb2312=/usr/share/fonts/zh_CN/TrueType
awtfontpath.chinese-gbk=/usr/share/fonts/zh_CN/TrueType
awtfontpath.chinese-iso10646=/usr/share/fonts/zh_CN/TrueType
awtfontpath.japanese-x0201=/opt/fonts/TrueType
awtfontpath.japanese-x0208=/opt/fonts/TrueType

-- end --

キャプチャー済みmpegファイルの編集

2005年11月08日 | 雑多なこと
 キャプチャーを使ってテレビなんかもキャプチャーは出来るようになったのですが、そのままだとウンGBのファイルになるし、CMやら不要な物が多いので、編集するソフトが必要です(WindowsならTMPEG Editorが便利でいいのですが)。で、ちょっと調べて使えそうだなぁと思ったのが、gopchop(http://gopchop.org/index.php)というソフトで、gopベースでの編集に限定されますが、mpegファイルから必要な部分だけ切り出せるので、結構便利なのと、当然再エンコードされないので、ファイルの劣化がありません。

 とここまで出来たので、ほとんどWindowsは不要になりつつあります。最後の課題は印刷です。これが結構難しい...