2011年11月28日月曜日

UbuntuStadio 11.10 autologin その2

http://siripong-computer-tips.blogspot.com/2011/09/enable-lightdm-autologin-debian-wheezy.html を参考にしました。
/etc/lightdm/lightdm.conf 次のようにした。

[SeatDefaults]
#autologin-guest=false
autologin-user= 
autologin-user-timeout=0
#autologin-session=lightdm-autologin
pam-service=lightdm-autologin
#greeter-session=lightdm-gtk-greeter-ubuntu
#user-session=xfce

ログアウト>ログアウト> でマニュアルログインができるようになった。


Chromiumにて、オートログインで”・・・ログインのキーロックを解除・・・”のダイヤログがでる。
マニュアルログインでは出ないので、なぜかわからない?


2011年11月13日日曜日

UbuntuStudio 11.10 autologin

>lightdm.confを作る(rootにて) 
[SeatDefaults]
autologin-guest=false
autologin-user=
autologin-user-timeout=0
autologin-session=lightdm-autologin
greeter-session=lightdm-gtk-greeter-ubuntu
user-session=xfce

/etc/lightdm/に置く

ログアウトで画面が真っ黒で再度ログインできない。まだ他にあるみたい

UbuntuStudio 11.10 メモ

UbuntuStudio 11.10 インストールでのメモ
1.フォントの削除
 Synaptic>ttf-unfonts-core (説明:Un series Korean TrueType fonts)を削除
2.Japanese Teamによる追加パッケージ
3.インストールしたもの
 mozc
leafpad
ubuntu-tweak
 software-center
google-chrome(Japanese Teamによる追加パッケージを入れないと漢字が□となった)

2011年11月8日火曜日

Lubuntu 11.10 + ubuntu-tweak(alpha version)

Ubuntu Tweak 0.6 beta is ready for testers and … developers! から

  • sudo add-apt-repository ppa:tualatrix/next
  • sudo apt-get update
  • sudo apt-get install ubuntu-tweak

2011年10月26日水曜日

Lubuntu 11.10 起動時 NumLock をONにする

Ubuntu manuals のlxdm - LXDE Display Manager (Login screen)から
http://manpages.ubuntu.com/manpages/oneiric/en/man1/lxdm.1.html

CONFIGURATION FILE

       The configuration file is /etc/lxdm/default.conf, which is a symlink to
       the real configuration file. (/etc/lxdm/lxdm.conf  for  standard  lxdm,
       /etc/xdg/lubuntu/lxdm/lxdm.conf for Lubuntu).
numlock
       Enable numlock support. Disable by default, you need to  uncomment  the line. 
とあったので

/etc/xdg/lubuntu/lxdm/lxdm.confの13行目の
## uncomment and set to set numlock on your keyboard
# numlock=0 を
numlock=1 に変更します。
次回の起動でNumlockのLEDが点灯してONとなりました。

2011年10月22日土曜日

Lubuntu 11.10 フォントの削除

福島の[福]、送信の[送]など見慣れない漢字になっています。

Synaptic パッケージマネージャにて
ttf-unfonts-core (説明:Un series Korean TrueType fonts)を削除します。

Watir.com Example












2011年10月21日金曜日

Ruby + watir-webdriver + chromedriver.exeでgoogle chromeを操作する

ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

C:\Documents and Settings\takashi>gem install watir-webdriver
Fetching: json_pure-1.6.1.gem (100%)
Fetching: rubyzip-0.9.4.gem (100%)
Fetching: ffi-1.0.9-x86-mingw32.gem (100%)
Fetching: childprocess-0.2.2.gem (100%)
Fetching: selenium-webdriver-2.9.0.gem (100%)
Fetching: watir-webdriver-0.3.5.gem (100%)
Successfully installed json_pure-1.6.1
Successfully installed rubyzip-0.9.4
Successfully installed ffi-1.0.9-x86-mingw32
Successfully installed childprocess-0.2.2
Successfully installed selenium-webdriver-2.9.0
Successfully installed watir-webdriver-0.3.5
6 gems installed
Installing ri documentation for json_pure-1.6.1...
Installing ri documentation for rubyzip-0.9.4...
Installing ri documentation for ffi-1.0.9-x86-mingw32...
Installing ri documentation for childprocess-0.2.2...
Installing ri documentation for selenium-webdriver-2.9.0...
Installing ri documentation for watir-webdriver-0.3.5...
Installing RDoc documentation for json_pure-1.6.1...
Installing RDoc documentation for rubyzip-0.9.4...
Installing RDoc documentation for ffi-1.0.9-x86-mingw32...
Installing RDoc documentation for childprocess-0.2.2...
Installing RDoc documentation for selenium-webdriver-2.9.0...
Installing RDoc documentation for watir-webdriver-0.3.5...
   http://code.google.com/p/chromium/downloads/list から
   chromedriver_win_16.0.902.0.zipをdownloadして展開する。
   chromedriver.exeをc:\ruby\ruby192\bin\の下に入れる。

ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

C:\Documents and Settings\takashi>irb
irb(main):001:0> require 'watir-webdriver'
=> true
irb(main):002:0> browser = Watir::Browser.new(:chrome)
Started ChromeDriver
port=1107
version=16.0.902.0
=> #
irb(main):003:0> browser.goto("http://google.com")
=> "http://www.google.co.jp/"
irb(main):004:0>

ruby1.8.7 ruby1.9.2 ironruby devkit 最新版入替メモ

Ruby 1.9.2-p180>uninstall ruby 1.9.2-p180 の実行
rubyinstaller-1.9.2-p290.exe の実行
Ruby 1.8.7-p334>uninstall ruby 1.8.7-p334 の実行
rubyinstaller-1.8.7-p352.exe の実行
IronRuby 1.1>Uninstall IronRuby
IronRuby.msi の実行
Ruby 1.9.2-p290>Start Command Prompt with Ruby

C:\Documents and Settings\takashi>pik list
112: IronRuby 1.1.2.0 on .NET 4.0.30319.1
187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
* 192: ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

C:\Documents and Settings\takashi>pik rm 192
Are you sure you'd like to remove '192: ruby 1.9.2p180 (2011-02-18) [i386-mingw32]'? |yes|
y
192: ruby 1.9.2p180 (2011-02-18) [i386-mingw32] removed.

C:\Documents and Settings\takashi>pik add c:\ruby\ruby192\bin
** Adding: 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
Located at: C:\ruby\ruby192\bin

C:\Documents and Settings\takashi>pik rm 187
Are you sure you'd like to remove '187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]'? |yes|
y
187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] removed.

C:\Documents and Settings\takashi>pik add c:\ruby\ruby187\bin
** Adding: 187: ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
Located at: C:\ruby\ruby187\bin

C:\Documents and Settings\takashi>pik rm 112
Are you sure you'd like to remove '112: IronRuby 1.1.2.0 on .NET 4.0.30319.1'? |yes|
y
112: IronRuby 1.1.2.0 on .NET 4.0.30319.1 removed.

C:\Documents and Settings\takashi>pik add "C:\Program Files\IronRuby 1.1\bin"
** Adding: 113: IronRuby 1.1.3.0 on .NET 4.0.30319.239
Located at: C:\Program Files\IronRuby 1.1\bin

C:\Documents and Settings\takashi>pik list
113: IronRuby 1.1.3.0 on .NET 4.0.30319.239
187: ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
* 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

C:\Documents and Settings\takashi>cd c:\rubyapi

C:\rubyapi>type fib39.rb
class Integer
def fib
return self if self < 2
(self-2).fib + (self-1).fib
end
end

n = 39
start = Time.now
res = n.fib
puts "", res, (Time.now - start).to_s + " sec"

C:\rubyapi>pik bench fib39.rb
IronRuby 1.1.3.0 on .NET 4.0.30319.239

Rehearsal --------------------------------------------------------------
** benchmarking 'fib39.rb'
63245986
219.015625 sec
214.890625 3.640625 218.531250 (219.078125)
--------------------------------------------------- total: 218.531250sec

user system total real
** benchmarking 'fib39.rb'
63245986
230.96875 sec
223.687500 4.234375 227.921875 (230.984375)

ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]

Rehearsal --------------------------------------------------------------
** benchmarking 'fib39.rb'
63245986
303.078125 sec
302.157000 0.000000 302.157000 (303.093750)
--------------------------------------------------- total: 302.157000sec

user system total real
** benchmarking 'fib39.rb'
63245986
301.71875 sec
301.031000 0.016000 301.047000 (301.750000)

ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

Rehearsal --------------------------------------------------------------
** benchmarking 'fib39.rb'
63245986
91.28125 sec
91.047000 0.000000 91.047000 ( 91.296875)
---------------------------------------------------- total: 91.047000sec

user system total real
** benchmarking 'fib39.rb'
63245986
91.234375 sec
90.906000 0.015000 90.921000 ( 91.250000)


C:\rubyapi>

c:\ruby\DevKit\ の下をすべて削除する
DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe を実行して
c:\ruby\DevKit\ の下に展開する

C:\rubyapi>cd c:\ruby\devkit

C:\ruby\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/ruby/Ruby187
[INFO] found RubyInstaller v1.9.2 at C:/ruby/Ruby192

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\ruby\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/ruby/Ruby187
C:/ruby/Ruby192

C:\ruby\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/ruby/Ruby187'
[WARN] Skipping existing DevKit helper library for 'C:/ruby/Ruby187'
[INFO] Updating convenience notice gem override for 'C:/ruby/Ruby192'
[WARN] Skipping existing DevKit helper library for 'C:/ruby/Ruby192'

C:\ruby\DevKit>gem install rdiscount --platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
Installing ri documentation for rdiscount-1.6.8...
Installing RDoc documentation for rdiscount-1.6.8...

C:\ruby\DevKit>ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"

Hello RubyInstaller


C:\ruby\DevKit>

2011年10月15日土曜日

UbuntuStudio 11.10 インストール









Ubuntu-Studio 11.10 (Oneiric Ocelot)からubuntustudio-11.10-alternate-i386.iso
をダウンロードしてインストールした。
ディスクトップがXFCEになっていた。

旧型PC 3 Lubuntu 11.10 インストール

CPU:Intel(R) Celeron(R) CPU 2.93G
MOTHER:MSI 865G Neo2
MEMORY:1GB PC3200-512MBX2
VIDEO:R9200LE
HDD:SEAGATE ST3120026A (120GB)a

lubuntu-11.10-desktop-i386.iso をダウンロードしてインストールした。

日本語を入力できるようにする
 「言語サポート」-「言語」キーボード入力に使うIMシステム:空白なので
 synapticパッケージマネージャで[ibus]インストールします。
 再起動
 synapticパッケージマネージャで[ibus-mozc]インストールします。
 再起動
 Mozc 手書き文字認識など増えています
Lubuntu 11.10 約0分48秒(bios起動時間10秒含む) shoutdown約15秒

2011年10月4日火曜日

Microsoft Media Server 動画再生

google chromsでMicrosoft Media Serverの動画再生

https://forums.ubuntulinux.jp/viewtopic.php?id=9788
  • Microsoft Media Serverに代わるプラグインを参考に

sudo apt-get install ubuntu-restricted-extras

http://www.jjazz.net/
が再生できました

2011年9月30日金曜日

Ruby + Watir

Watir でChromeを自動操作したいのだが

$ gem install watir-webdriver
Fetching: json_pure-1.6.1.gem (100%)
Fetching: rubyzip-0.9.4.gem (100%)
Fetching: ffi-1.0.9.gem (100%)
Building native extensions. This could take a while...
Fetching: childprocess-0.2.2.gem (100%)
Fetching: selenium-webdriver-2.7.0.gem (100%)
Fetching: watir-webdriver-0.3.4.gem (100%)
Successfully installed json_pure-1.6.1
Successfully installed rubyzip-0.9.4
Successfully installed ffi-1.0.9
Successfully installed childprocess-0.2.2
Successfully installed selenium-webdriver-2.7.0
Successfully installed watir-webdriver-0.3.4
6 gems installed
Installing ri documentation for json_pure-1.6.1...
Installing ri documentation for rubyzip-0.9.4...
Installing ri documentation for ffi-1.0.9...
Installing ri documentation for childprocess-0.2.2...
Installing ri documentation for selenium-webdriver-2.7.0...
Installing ri documentation for watir-webdriver-0.3.4...
Installing RDoc documentation for json_pure-1.6.1...
Installing RDoc documentation for rubyzip-0.9.4...
Installing RDoc documentation for ffi-1.0.9...
Installing RDoc documentation for childprocess-0.2.2...
Installing RDoc documentation for selenium-webdriver-2.7.0...
Installing RDoc documentation for watir-webdriver-0.3.4...
$ irb

ruby-1.9.2-p290 :001 > require 'watir-webdriver'
=> true
ruby-1.9.2-p290 :002 > browser = Watir::Browser.new(:chrome)
Selenium::WebDriver::Error::WebDriverError: Unable to find the chromedriver executable. Please download the server from http://code.google.com/p/chromium/downloads/list and place it somewhere on your PATH. More info at http://code.google.com/p/selenium/wiki/ChromeDriver.
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/chrome/service.rb:18:in `executable_path'
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/chrome/service.rb:28:in `default_service'
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/chrome/bridge.rb:12:in `initialize'
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:35:in `new'
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:35:in `for'
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver.rb:81:in `for'
from /home/nakamura/.rvm/gems/ruby-1.9.2-p290/gems/watir-webdriver-0.3.4/lib/watir-webdriver/browser.rb:35:in `initialize'
from (irb):2:in `new'
from (irb):2
from /home/nakamura/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `
'
ruby-1.9.2-p290 :003 >

UbuntuSutdio 11.04 PPAからLowLatencyカーネルを導入する

Ubuntu Studio に関するTips/セットアップ/カーネルについて
の通り、PPAからLowLatencyカーネルを導入しました。
$sudo add-apt-repository ppa:abogani/ppa
$sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com F141B61E
$sudo apt-get update
$sudo apt-get install linux-lowlatency
$ uname -a
Linux ubuntu 3.0.0-12-lowlatency #19ppa1~natty1-Ubuntu SMP PREEMPT Mon Sep 26 07:57:09 UTC 2011 i686 i686 i386 GNU/Linux

UbuntuStudio 11.04 + rvm + ruby1.9.2

次のサイトを参考に入れました。
(Ubuntu)(Ubuntu11.04)(ruby)(rvm)(Ubuntu 11.04 に rvm で ruby のマルチバージョン環境を構築してみた)
[Ubuntu11.04]RVMを導入しRuby1.9をインストール

$sudo apt-get update
$sudo apt-get install aptitude
$sudo aptitude update
$sudo aptitude install git-core curl
$bash < <(curl -s https://rvm.beginrescueend.com/install/rvm )
一旦端末を終了してもう一度起動する
$rvm notes
$sudo aptitude install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
$rvm list known
$rvm install 1.9.2
$rvm use 1.9.2 --default
$sudo ln -s ~/.rvm/bin/ruby /usr/bin/
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]


2011年9月25日日曜日

cpuburn cpuに高負荷を掛けて試験


synapticでインストール











$cat /usr/share/doc/cpuburn/README
N E W burnK7 for the AMD Athlon/Duron has been released.

These programs are designed to load x86 CPUs as heavily as possible for
the purposes of system testing. They have been optimized for different
processors. FPU and ALU instructions are coded an assembler endless loop.
They do not test every instruction. The goal has been to maximize heat
production from the CPU, putting stress on the CPU itself, cooling
system, motherboard (especially voltage regulators) and power supply
(likely cause of burnBX/MMX errors).

burnP5 is optimized
for Intel Pentium w&w/o MMX processors
P6 is for Intel PentiumPro, PentiumII&III and Celeron CPUs
K6 is for AMD K6 processors
K7 is for AMD Athlon/Duron processors
MMX is to test cache/memory interfaces on all CPUs with MMX
BX is an alternate cache/memory test for Intel CPUs

GKrellM システムモニタ







Lubuntu Software Centerから
GKrellM システムモニタをインストール

2011年9月18日日曜日

GSmartControl ハードディスクの監視










Synoapitic package managerでGSmartcontrolをインストール

MSI 865G Neo2 + Lubuntu + lm-sensors

lm-sensors でのメモ
Synoapitic package managerでlm-sensorsをインストール
$sudo sensors-detect
(再起動)
/etc/modulesに下記が追加された
# Generated by sensors-detect on Sun Sep 18 12:47:57 2011
# Chip drivers
w83627hf
(再起動)
$sudo sensors
sensorsの内容が表示されず、sensors-detectしなおせ・・・
(Linux) Ubuntu 9.10 kernel 2.6.31でlm-sensorsから情報取得できない
を参考に
/etc/default/grubを変更した。
(前)#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
(後)GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax"
$sudo update-grub
(再起動)
~$ sensors
w83627hf-isa-0290
Adapter: ISA adapter
in0: +1.34 V (min = +0.00 V, max = +4.08 V)
in1: +1.34 V (min = +0.00 V, max = +4.08 V)
in2: +3.38 V (min = +2.82 V, max = +3.79 V)
in3: +3.01 V (min = +0.51 V, max = +0.51 V) ALARM
in4: +3.10 V (min = +2.18 V, max = +0.05 V) ALARM
in5: +0.58 V (min = +0.00 V, max = +2.08 V)
in6: +0.86 V (min = +1.44 V, max = +1.04 V) ALARM
in7: +3.23 V (min = +0.00 V, max = +0.00 V) ALARM
in8: +3.04 V (min = +2.18 V, max = +0.00 V) ALARM
fan1: 3375 RPM (min = -1 RPM, div = 8) ALARM
fan2: 1687 RPM (min = 21093 RPM, div = 8) ALARM
fan3: 0 RPM (min = 84375 RPM, div = 8) ALARM
temp1: +37.0°C (high = +2.0°C, hyst = +1.0°C) ALARM sensor = thermistor
temp2: +53.0°C (high = +120.0°C, hyst = +115.0°C) sensor = diode
temp3: +62.5°C (high = +120.0°C, hyst = +115.0°C) sensor = thermistor
cpu0_vid: +0.000 V
beep_enable:enabled

ALARMは/etc/sensors3.conf が未編集のまま

wine + java + LimeZilla










LimeZilla downloadをする。

$wine limezilla-setup.exe

LimeZillaを起動すると、Javaが入っていないので
Java Downloads for All Operating Systems
から windows7,XP Offlineをdownloadして

$wine jre-6u27-windows-i586-s.exe
LimeZillaが使えます。

フォント
ubuntu役に立つ?小技集

フォント関連を参考に


2011年9月15日木曜日

Lubuntu 11.04 + lubuntu control center + lubuntu software center










コントロールセンターとソフトセンターを追加しました。
sudo add-apt-repository ppa:lubuntu-desktop/ppa
sudo apt-get update
sudo apt-get install lubuntu-control-center
sudo apt-get install lubuntu-software-center

旧型PC 3 Lubuntu 11.04 インストール

CPU:Intel(R) Celeron(R) CPU 2.93G
MOTHER:MSI 865G Neo2
MEMORY:1GB PC3200-512MBX2
VIDEO:R9200LE
HDD:SEAGATE ST3120026A (120GB)a

パネルにCPU使用量モニタ Mozcを追加した。

Lubuntu 11.04 約0分46秒(bios起動時間10秒含む) shoutdown約3秒

2011年5月17日火曜日

Lubuntu 11.04 + wine1.3 + LTspiceIV

wine1.3のインストール

WineHQ - Installing the latest Wine on Ubuntu より
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3

$ wine EXEファイル名 #exeの場合
$ wine msiexec /i MSIファイル名 #msiの場合



リニアテクノロジー社のLTspiceIVをインストールとサンプルを動かしてみます。
LTspiceIV.exeをdownloadして
$wine LTspiceIV.exe でインストールします。

ディスクトップの[LTspiceIV]アイコンをダブルクリックで起動します。

Lubuntu 11.04 + software-center + Japanese Teamのパッケージレポジトリ


!チョットの試しで
software-centerとJapanese Teamのパッケージレポジトリを追加する






$ sudo apt-get install software-center
$ wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -
$ wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add -
$ sudo wget https://www.ubuntulinux.jp/sources.list.d/natty.list -O /etc/apt/sources.list.d/ubuntu-ja.list
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install ubuntu-desktop-ja


Lubuntu 11.04 + Mozc かな入力


Synapticパッケージ・マネージャーにて"mozc"で検索して"ibus-mozc"をインストールします。
【再起動】をします。

【言語サポート

 [メニュー]-[システムツール]-[言語サポート] 
  [言語]タブ[キーボート入力に使うIMシステム:]"ibus"になっていることを確認する。

【IBusの設定】 
 [メニュー]-[設定]-[キーボード・インプットメソッド]
  [インプットメソッド]タブ[インプットメソッドの選択][日本語]"Mozc"を選択して[追加]する。


   Anthyは使わないので。[日本語-Mozc]以外を削除しました。
  [一般]タブ[フォントとスタイル][言語パネルの表示:]"アクティブなとき"を選択する。
     システムトレイにアイコンを表示するのチェックをはずした(自分の好みで)
     言語バーにインプットメソッド名を表示するのチェックを入れる(自分の好みで)

"かな入力"に切り替えます。


エディターを立ち上げて[言語パネル]をアクティブにします。。
 [メニュー]-[アクセサリ]-[Leafpad]
 [漢字]キー押下で[言語パネル]が表示される。
 
【Mozcプロパティ】
  [言語パネル][スパナ][Property]




[一般]タブ
[基本設定][ローマ字入力・かな入力]"かな入力"を選択して[OK]する。 
[Mozcプロパティ]でしか"かな入力""ローマ字"が切り替えられないが、
こちらのほうが、私の好みに合っています。

[言語パネルの表示:]"アクティブなとき"を選択していなかったので
Mozcプロパティ、"かな入力""ローマ字"の切り替えまで行くのに
けっこうぐぐりました。

[サジェスト]タブの[その他の設定]-[サジェストの最大候補数]が設定できる




Lubuntu 11.04 + ubuntu-tweak

端末からUbuntu TweakのPPAを追加し、インストールします。
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
バッケージクリーナーをよく使っています

2011年5月16日月曜日

旧型PCに Lubuntu 11.04をインストール

MB:M7NBA
MEM:PC3200-512MBX2
VIDEO:R9200LE
HDD:Maxtor 120GB ATA/133
手測ですが、起動時間は
Lubuntu 11.04 約0分50秒(bios起動時間15秒含む) shoutdown3秒
ubuntu 11.04 GNOME 約1分00秒(bios起動時間15秒含む) shoutdown4秒

2011年3月8日火曜日

ruby1.9.2 + gtk2 (0.90.8 x86-mingw32)



ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

C:\Documents and Settings\takashi>gem list

*** LOCAL GEMS ***

atk (0.90.8 x86-mingw32)
cairo (1.10.0 x86-mingw32)
gdk_pixbuf2 (0.90.8 x86-mingw32)
glib2 (0.90.8 x86-mingw32)
gtk2 (0.90.8 x86-mingw32)
minitest (2.0.2)
mkrf (0.2.3)
pango (0.90.8 x86-mingw32)
pkg-config (1.0.8)
rake (0.8.7)
rdoc (3.5.3)
rubygems-update (1.6.1)

C:\Documents and Settings\takashi>cd C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.8-x86-mingw32\sample\gtk-demo

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.8-x86-mingw32\sample\gtk-demo>ruby main.rb

ruby1.8.7 + gtk2-0.90.8


gtk2の最新版でsampleを実行しました。
C:\Documents and Settings\takashi>gem install gtk2
Fetching: pkg-config-1.0.8.gem (100%)
Fetching: glib2-0.90.8-x86-mingw32.gem (100%)
Fetching: atk-0.90.8-x86-mingw32.gem (100%)
Fetching: cairo-1.10.0-x86-mingw32.gem (100%)
Fetching: pango-0.90.8-x86-mingw32.gem (100%)
Fetching: gdk_pixbuf2-0.90.8-x86-mingw32.gem (100%)
Fetching: gtk2-0.90.8-x86-mingw32.gem (100%)
Successfully installed pkg-config-1.0.8
Successfully installed glib2-0.90.8-x86-mingw32
Successfully installed atk-0.90.8-x86-mingw32
Successfully installed cairo-1.10.0-x86-mingw32
Successfully installed pango-0.90.8-x86-mingw32
Successfully installed gdk_pixbuf2-0.90.8-x86-mingw32
Successfully installed gtk2-0.90.8-x86-mingw32
7 gems installed
Installing ri documentation for pkg-config-1.0.8...
Installing ri documentation for glib2-0.90.8-x86-mingw32...
Installing ri documentation for atk-0.90.8-x86-mingw32...
Installing ri documentation for cairo-1.10.0-x86-mingw32...
Installing ri documentation for pango-0.90.8-x86-mingw32...
Installing ri documentation for gdk_pixbuf2-0.90.8-x86-mingw32...
Installing ri documentation for gtk2-0.90.8-x86-mingw32...
Installing RDoc documentation for pkg-config-1.0.8...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Installing RDoc documentation for glib2-0.90.8-x86-mingw32...
Installing RDoc documentation for atk-0.90.8-x86-mingw32...
Installing RDoc documentation for cairo-1.10.0-x86-mingw32...
Could not find main page README.txt
Could not find main page README.txt
Could not find main page README.txt
Could not find main page README.txt
Installing RDoc documentation for pango-0.90.8-x86-mingw32...
Installing RDoc documentation for gdk_pixbuf2-0.90.8-x86-mingw32...
Installing RDoc documentation for gtk2-0.90.8-x86-mingw32...

C:\Documents and Settings\takashi>cd C:\ruby\Ruby187\lib\ruby\gems\1.8\gems\gtk2-0.90.8-x86-mingw32\sample\gtk-demo

C:\ruby\Ruby187\lib\ruby\gems\1.8\gems\gtk2-0.90.8-x86-mingw32\sample\gtk-demo>ruby -rubygems main.rb

2011年2月23日水曜日

Ruby 1.8.7-p334/1.9.2p180にupdate


rubyinstaller-1.8.7-p334.exe
rubyinstaller-1.9.2-p180.exe
入れました。
RubyInstaller1.8.6 と1.9.1のサポートは行われないようです。

2011年2月16日水曜日

RubyGems1.5.2 update

RubyGems.org | your community gem host
C:\rubyapi>ruby -v
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]

C:\rubyapi>gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.5.2
Updating RubyGems to 1.5.2
Installing RubyGems 1.5.2
RubyGems 1.5.2 installed
unable to convert U+0160 from UTF-8 to Windows-31J for History.txt, skipping
unable to convert U+0160 from UTF-8 to Windows-31J for History.txt, skipping

・ソ=== 1.5.2 / 2011-02-10

NOTE: RubyGems 1.5.0 and 1.5.1 have a broken gem update --system.

To upgrade you'll need to use the manual upgrade recipe. Using sudo/su as
appropriate:

$ gem install rubygems-update
$ update_rubygems

Bug Fixes:

* Fixed gem update --system. RubyGems can now update itself again.


------------------------------------------------------------------------------

RubyGems installed the following executables:
C:/ruby/Ruby192/bin/gem


C:\rubyapi>

ruby1.8.7 gtk2-0.90.7-x86-mingw32 エラー

gtk2-0.90.7-x86-mingw32を入れたけど
sampleのmain.rbにてlibgdk_pixbuf-2.0-0.dllからみつかりませんでした。のエラー

C:\ruby\Ruby187\lib\ruby\gems\1.8\gems\gtk2-0.90.7-x86-mingw32\sample\gtk-demo>gem list

*** LOCAL GEMS ***

atk (0.90.7 x86-mingw32, 0.90.2 x86-mingw32)
cairo (1.10.0 x86-mingw32)
gdk_pixbuf2 (0.90.7 x86-mingw32)
glib2 (0.90.7 x86-mingw32, 0.90.2 x86-mingw32)
gtk2 (0.90.7 x86-mingw32, 0.90.2 x86-mingw32)
pango (0.90.7 x86-mingw32, 0.90.2 x86-mingw32)
pkg-config (1.0.8)
rubygems-update (1.5.2)

C:\ruby\Ruby187\lib\ruby\gems\1.8\gems\gtk2-0.90.7-x86-mingw32\sample\gtk-demo>ruby -rubygems main.rb
C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- gtk2.so
(LoadError)
from C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/gtk2-0.90.7-x86-mingw32/lib/gtk2/base.rb:24
from C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/gtk2-0.90.7-x86-mingw32/lib/gtk2.rb:11
from C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from C:/ruby/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from main.rb:11

C:\ruby\Ruby187\lib\ruby\gems\1.8\gems\gtk2-0.90.7-x86-mingw32\sample\gtk-demo>ruby -v
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]

C:\ruby\Ruby187\lib\ruby\gems\1.8\gems\gtk2-0.90.7-x86-mingw32\sample\gtk-demo>

2011年2月13日日曜日

Ruby 1.8.7/1.9.2 update

RubyInstaller for Windowsから
rubyinstaller-1.8.7-p330.exe
rubyinstaller-1.9.2-p136.exe
ダウンロードしてインストールしました。

IronRuby 1.1.2 Release


IronRuby 1.1.2 Release

2011年1月8日土曜日

2011年1月4日火曜日

PDFCreator1.1.0


PDFCreator-1_1_0_setup.exeをインストールします。

PDFCreator 日本語対応版よりPDFCreator1.1.0日本語対応インストーラ版を
インストールします。
Japanes(日本語)に設定しても文字化けしている場合は、
[設定][プログラム設定][フォント]でキャラクタセットを128,Japaneseに設定します。
プログラムのフォントも必要であれば変更します。

PDF以外にも、TIFFなどで出力でるの重宝しています。