ラベル Server の投稿を表示しています。 すべての投稿を表示
ラベル Server の投稿を表示しています。 すべての投稿を表示

2009年7月24日金曜日

gem 1.3.5 さくら

%cat .cshrc
set path $HOME/ROOT/bin
setenv RUBYLIB $HOME/ROOT/lib
setenv GEM_HOME $HOME/ROOT/lib/ruby/gem

%mkdir $HOME/ROOT
%ruby setup.rb --prefix=$HOME/ROOT

%gem18 -v
1.3.5

%gem18 update --system
Updating RubyGems
Nothing to update

%setenv RB_USER_INSTALL true
%gem18 install hpricot

2009年4月22日水曜日

MySQL column auto incrementのリセット

mysql> delete from ff_musics;
Query OK, 1 row affected (0.00 sec)
mysql> alter table ff_musics AUTO_INCREMENT =1;

2008年7月31日木曜日

2008年7月30日水曜日

2008年7月29日火曜日

VMware ESXi

VMware ESXiが無償化。

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/