跳至主要内容

博文

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  ...

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 {} \;