To create a local key:
ssh-keygen -t dsa
To add the key as a valid key to the remote machine:
ssh-copy-id -i $HOME/.ssh/id_dsa.pub username@remote.box
ssh-keygen -t dsa
ssh-copy-id -i $HOME/.ssh/id_dsa.pub username@remote.box
sudo apt-get install python-software-properties -y sudo add-apt-repository ppa:gearman-developers/ppa sudo apt-get update sudo apt-get install gearman-job-server libgearman-dev gearman-tools php-pear php5-dev -y sudo apt-get install libevent-dev uuid-dev -y pecl install gearman
sudo apt-get install libboost-program-options1.40-dev libboost-thread1.40-dev -y
sudo apt-get install libboost-thread1.42-dev libcloog-ppl0 libboost-program-options-dev -yFor Ubuntu 11.10 and 12.04:
sudo apt-get install libboost-thread1.46-dev libcloog-ppl0 libboost-program-options-dev -y
apt-get install uuid-dev libevent-dev -y wget https://launchpad.net/gearmand/trunk/0.28/+download/gearmand-0.28.tar.gz tar xfv gearmand-0.28.tar.gz cd gearmand-0.28 ./configure make && make install sudo ldconfig
prefix=/usr/localRetry pecl install and install module into php:
sudo pecl install gearman echo "extension=gearman.so" > /etc/php5/conf.d/gearman.ini
sudo apt-get install build-essential libcatalyst-perl libcatalyst-modules-perl libmoose-perl apache2 \ libapache2-mod-fastcgi libfcgi-perl libfcgi-procmanager-perl mercurial liblog-handler-perl libarray-diff-perl \ libcatalyst-action-rest-perl libdata-walk-perl libdatetime-format-iso8601-perl libmodule-install-perl -y PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install BZ::Client" PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Moose" PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Test::More" PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Catalyst::Controller::REST" #(inc. optional modules) PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Catalyst::Plugin::Log::Handler" PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Slurp"
cd /var/www/bugzilla
wget https://bugzilla.mozilla.org/attachment.cgi?id=408495 -O JSON_template_for_config.cgi.diff
patch < JSON_template_for_config.cgi.diff
wget https://bugzilla.mozilla.org/attachment.cgi?id=475044 -O template/en/default/config.json.tmpl
chown root:www-data template/en/default/config.json.tmpl
Get the bzapi files:
cd /var/www hg clone http://hg.mozilla.org/webtools/bzapi bzapiCopy extension into place and set up config file:
cd /var/www/bzapi cp -r extension/BzAPI ../bugzilla/extension/ cp bugzilla_api.conf.sample bugzilla_api.conf nano bugzilla_api.confCheck that all dependencies are met, by trying to start the fastcgi server:
cd /var/www/bzapi ./script/bugzilla_api_server.plSet up apache:
a2enmod ssl nano /etc/apache2/sites-enabled/bzapiExample config for apache (I simply added these lines to my bugzilla installation):
# Config for port 80 without ssl (will redirect) FastCgiServer /var/www/bzapi/script/bugzilla_api_fastcgi.pl -processes 10 -idle-timeout 180 Alias /bzapi /var/www/bzapi/script/bugzilla_api_fastcgi.pl/ # Config for port 443 with ssl Alias /bzapi /var/www/bzapi-1.0/script/bugzilla_api_fastcgi.pl/Restart apache to enable config:
apache2ctl restartAt this point I hit a problem with: Can't locate Bugzilla/API.pm in @INC (@INC contains: .. /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.10.1/Module/Runtime.pm line 317. I solved it by adding the following to line 2 in /var/www/bzapi/script/bugzilla_api_fastcgi.pl:
use lib "/var/www/bzapi/lib";And then restart apache again.
Allow LDIF imports of encoded passwords: config/config.ldif, under cn=Default Password Policy,cn=Password Policies,cn=config change ds-cfg-allow-pre-encoded-passwords : true
dig AAAA ipv6.he.net (gets you the address) dig -x 2001:470:0:64::2 host -t PTR 2001:470:0:64::2 nslookup -type=PTR 2001:470:0:64::2
mysqldump -u mysql_username -p name_of_database > databasefile.sql
mysql -u mysql_username -p name_of_database < databasefile.sqlCompressed dump and restore: Dump and compress database to archive file:
mysqldump -u mysql_username -p name_of_database | gzip -9 > backupfile.sql.gzRestore compressed database file:
gunzip < backupfile.sql.gz | mysql -u mysql_username -p name_of_database