Tag: CentOS5
※最新版はAdditionalResources/Repositories/RPMForge - CentOS Wikiを見て確認可能。
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
# rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
# yum install yum-priorities
enabled = 0
システム→設定→スクリーンセーバーで、「アイドル時にスクリーンセーバーを起動」と「スクリーンセーバー起動時に画面をロック」のチェックを無効にする。
システム→設定→画面の解像度の設定で変更する。
sudo yum install mysql-devel.x86_64 --enablerepo=remi
# yum install gcc # yum install httpd-devel # yum -y install openssl-devel # yum -y install apr-util apr-util-devel apr apr-devel
# tar jxvpf subversion-1.6.16.tar.bza2 # tar jxvpf subversion-deps-1.6.16.tar.bz2
# cd subversion-1.6.16
# ./configure --prefix=/usr/local --with-apr=/usr --with-apr-util=/usr --with-apxs=/usr/sbin/apxs # make # make install
# svn --version
LoadModule dav_svn_module /usr/lib/httpd/modules/mod_dav_svn.so LoadModule authz_svn_module /usr/lib/httpd/modules/mod_authz_svn.so
# ./vmware-install.pl
# yum --enablerepo=rpmforge install ddclient
use=web login=myhost password=xxxxx server=members.dyndns.org, \ protocol=dyndns2 \ myhost.dyndns.org
# /usr/sbin/ddclient -daemon=0 -verbose
# /etc/init.d/ddclient start
$ sudo yum install sqlite3-devel
$ tar jxvpf ruby-1.8.7-p334.tar.bz2 $ cd ruby-1.8.7-p334 $ ./configure $ make $ sudo make install
$ tar zxvpf rubygems-1.7.1.tgz $ cd rubygems-1.7.1 # ruby setup.rb
# gem update --system
# gem update --system 1.4.2
$ sudo gem install sqlite3-ruby --version=1.2.5
$ sudo gem install rake
$ sudo gem install -v=0.4.2 i18n
$ sudo gem install rails --version 2.3.11
production: adapter: sqlite3 database: db/redmine.db timeout: 5000
$ rake config/initializers/session_store.rb
$ rake db:migrate RAILS_ENV=production
$ rake redmine:load_default_data RAILS_ENV=production
$ script/server -e production
# gem install passenger
# passenger-install-apache2-module
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5 PassengerRuby /usr/local/bin/ruby
ln -s /home/redmine/public_html /var/www/html/redmine
$ sudo gem install mongrel $ sudo gem install mongrel_cluster
$ mongrel_rails -e production
# mongrel_rails cluster::configure -e production
--- log_file: log/mongrel.log port: 3000 cwd: /home/redmine environment: production pid_file: tmp/pids/mongrel.pid servers: 2
# mkdir /etc/mongrel_cluster # ln -s /home/redmine/config/mongrel_cluster.yml /etc/mongrel_cluster/redmine.yml
# cp /usr/local/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/resources/mongrel_cluster /etc/init.d/
# sudo chmod +x /etc/init.d/mongrel_cluster
# sudo /sbin/chkconfig --level 345 mongrel_cluster on
gem 'rack', '~> 1.2.1'
Redmine - Defect #7516: Redmine does not work with RubyGems 1.5.0 - Redmineによるとconfig/environment.rbに次のコードを追加する。
if Gem::VERSION >= "1.3.6" module Rails class GemDependency def requirement r = super (r == Gem::Requirement.default) ? nil : r end end end end
verbose = $VERBOSE $VERBOSE = nil @vendor_source_index = Gem::SourceIndex.new(vendor_gems) $VERBOSE = verbose
yum clean all yum update glibc\* yum update yum\* rpm\* pyth\* yum clean all yum update mkinitrd nash yum update selinux\* yum update shutdown -r now
# vi /etc/sysconfig/network
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \ LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \ LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \ LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \ _XKB_CHARSET XAUTHORITY PATH"