跳至主要内容

博文

目前显示的是 2011的博文

ssh issue

The GSS-API protected key exchange has failed without indication from the server, possibly due to misconfiguration of the server. Use the GssKeyEx option to disable GSS-API key exchange and try agai change the sshd_config # GSSAPI options GSSAPIAuthentication no #GSSAPICleanupCredentials yes #GSSAPIStrictAcceptorCheck no GSSAPIKeyExchange no the authen and key line to no

Jenkins

#!/bin/bash # Author: Alex Tu, 2011 # ### BEGIN INIT INFO # Provides:          gbv-hudson-integration # Required-Start:    $local_fs $network # Required-Stop: # Default-Start:     3 5 # Default-Stop:      0 1 2 6 # Short-Description: Starts the hudson server for CI # Description:       Starts Continuous Integration System for VZG SOA ### END INIT INFO # to avoid conflict with functions local $1 ARG=$1 APP="jenkins" HUDSON_USER=jenkins HUDSON_GROUP=jenkins JAVA=/usr/bin/java export HOME=/opt/${HUDSON_USER} export HUDSON_WAR=/opt/${HUDSON_USER}/jenkins.war # include rc.status functions test -s /etc/rc.status && . /etc/rc.status && rc_reset # use test_for_app (x|f) test_for_app () {     app_found=0     if [ "f" = "$2" ] && [ -f $1 ]; then         app_found=1     elif [ "x" = "$2" ] && [ -x $1 ]; then         app_found=1     fi     if [ 0 = $app_found ]; then         echo -n "Warning:  Couldn't fin

4 steps to delete account in Gerrit DB

4 steps to delete account in DB. Delete from accounts where preferred_email=’’; delete from account_ssh_keys where account_id=''; delete from account_external_ids where external_id='gerrit:*’; delete from account_external_ids where external_id='username:*’; whatever it was in H2 database and postgres db . H2: ssh -p 24198 localhost gerrit gsql Postgres: psql

tar with /

When I try to tar -jcvf /, that will caused error tar: Removing leading `/' from member names The fix coomand tar -jcvPf /opt.tar /opt If you put the P after f, it will create P file... untar tar -jxvPf /opt.tar if no P option, it will have the error as the same. #!/bin/bash DATE=`date "+%F-%H-%M"` /u01/postgres/9.0/bin/pg_dump reviewdb > /var/backup/reviewdb_$DATE.sql /usr/bin/bzip2 /var/backup/reviewdb_$DATE.sql find . -name "*.sql.bz2" -mtime +90 -exec rm -rf {} \;

redmine installation guide

 1.  Prepare all the applications.      1) ruby. highly recommend use 1.8.6-1.8.7  http://www.ruby-lang.org/en/downloads/            ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]          mysql 5.1.45      2) install all required gem/ gem install *.gem           rubygem        actionmailer (2.3.11)       actionpack (2.3.11)       activerecord (2.3.11)       activeresource (2.3.11)       activesupport (2.3.11)       i18n (0.4.2)       mysql (2.8.1)       rack (1.1.0, 1.0.1)       rails (2.3.11)       rake (0.8.7)       rubygems-update (1.4.2)         Ruby 1.9 is not supported yet.  You  have  to use Ruby 1.8.x as stated above. RubyGems 1.3.1 or higher is required ( Rails 2.3.5 will fail with RubyGems 1.5.0 and later , stick to previous versions of RubyGems) Rake 0.8.3 or higher is required Rack 1.0.1 is required. If you don't have this exact version, database migration would fail. I18n 0.4.2 is required for Redmine >= 1.0.5      3) download redmine  http://www.redmine.