2008年5月31日土曜日

県政出前講座:合同講座

志摩町民大学
オリエンテーションをはさんで、県の環境政策課からの講座

「待ったなし!地球温暖化対策」

肝は「エコにもデータ!」
つまりしゃかりきになってエコ活動しても、それがどれだけの成果となっているのかを定量的に記録しましょうとのこと。そのためのツールが
福岡県環境家計簿(エコファミリーカレンダー)
手段と目的をしっかり意識できる。1年以上、この家計簿をつければ電力以外の項目によるCO2排出量削減値も見えてくる。

GoogleGadgetsにしても面白いかと思ったけど、Excel版もあるのでパス。

事業者向け環境家計簿はこちら
事業者らしくPDCAのフレームワーク。

2008年5月22日木曜日

Ruby for Windows

Ruby for Windows XP
ruby-1.8.6-p114-i386-mswin32.zip
unzip to C:\ruby

path設定
C:\ruby\bin

Rails2.0.2
rubygems-1.1.1.zip

ruby gem setup.rb

zlib123をDL

gem update --system
gem install rubygems-update
update_rubygems

rails
gem install rails --include-dependencies

iconv-1.8.win32.zipをDL

rails --database=mysql test
config.yml編集
rake db:create

ruby script/server

2008年5月17日土曜日

OpenVPN + bridge

/etc/openvpn/server.conf

dev tap0
とTAPデバイス名を指定する

2008年5月5日月曜日

bridge

[root@localhost ~]# yum install bridge-utils
Loading "kernel-module" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
rpmforge 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
adobe-linux-i386 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for bridge-utils to pack into transaction set.
bridge-utils-1.1-2.x86_64 100% |=========================| 4.9 kB 00:00
---> Package bridge-utils.x86_64 0:1.1-2 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
bridge-utils x86_64 1.1-2 base 28 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 28 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): bridge-utils-1.1-2 100% |=========================| 28 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: bridge-utils ######################### [1/1]

Installed: bridge-utils.x86_64 0:1.1-2
Complete!

OpenVPN

[root@localhost ~]# yum install openvpn.x86_64
Loading "kernel-module" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for openvpn to pack into transaction set.
openvpn-2.0.9-1.el5.rf.x8 100% |=========================| 20 kB 00:00
---> Package openvpn.x86_64 0:2.0.9-1.el5.rf set to be updated
--> Running transaction check
--> Processing Dependency: liblzo2.so.2()(64bit) for package: openvpn
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for lzo2 to pack into transaction set.
lzo2-2.02-3.el5.rf.x86_64 100% |=========================| 4.2 kB 00:00
---> Package lzo2.x86_64 0:2.02-3.el5.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
openvpn x86_64 2.0.9-1.el5.rf rpmforge 372 k
Installing for dependencies:
lzo2 x86_64 2.02-3.el5.rf rpmforge 138 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 509 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): lzo2-2.02-3.el5.rf 100% |=========================| 138 kB 00:01
(2/2): openvpn-2.0.9-1.el 100% |=========================| 372 kB 00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: lzo2 ######################### [1/2]
Installing: openvpn ######################### [2/2]

Installed: openvpn.x86_64 0:2.0.9-1.el5.rf
Dependency Installed: lzo2.x86_64 0:2.02-3.el5.rf
Complete!

[root@localhost ~]# cd /etc/openvpn/
[root@localhost openvpn]# cp /usr/share/doc/openvpn-2.0.9/sample-config-files/server.conf
.
[root@localhost openvpn-2.0.9]# pwd
/usr/share/doc/openvpn-2.0.9
[root@localhost openvpn-2.0.9]# cp -r easy-rsa/ /etc/openvpn/
[root@localhost openvpn-2.0.9]# cd /etc/openvpn/

2008年5月4日日曜日

VirtualBox-1.6.0_30421_rhel5-1.x86_64.rpm

[root@localhost ~]# vi /etc/yum
yum/ yum.conf yum.repos.d/
[root@localhost ~]# vi /etc/yum.conf
[root@localhost ~]# yum install VirtualBox-1.6.0_30421_rhel5-1.x86_64.rpm
Loading "kernel-module" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Examining VirtualBox-1.6.0_30421_rhel5-1.x86_64.rpm: VirtualBox - 1.6.0_30421_rhel5-1.x86_64
Marking VirtualBox-1.6.0_30421_rhel5-1.x86_64.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package VirtualBox.x86_64 0:1.6.0_30421_rhel5-1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
VirtualBox x86_64 1.6.0_30421_rhel5-1 VirtualBox-1.6.0_30421_rhel5-1.x86_64.rpm 52 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 52 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: VirtualBox ######################### [1/1]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute

/etc/init.d/vboxdrv setup

as root.


Installed: VirtualBox.x86_64 0:1.6.0_30421_rhel5-1
Complete!
[root@localhost ~]# vi /etc/group
[root@localhost ~]# vi /etc/yum.conf
[root@localhost ~]# yum install kernel-devel.x86_64
Loading "kernel-module" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel-devel to pack into transaction set.
kernel-devel-2.6.18-53.1. 100% |=========================| 766 kB 00:00
---> Package kernel-devel.x86_64 0:2.6.18-53.1.14.el5 set to be installed
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel-devel x86_64 2.6.18-53.1.14.el5 updates 4.9 M


Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): kernel-devel-2.6.1 100% |=========================| 4.9 MB 00:03
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: kernel-devel ######################### [1/1]

Installed: kernel-devel.x86_64 0:2.6.18-53.1.14.el5
Complete!
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [??]
(Cannot create device /dev/vboxdrv with major 10 and minor 62)
[root@localhost ~]#
[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]
[root@localhost ~]#