Jetpackが導入できない場合の対処法のメモ書き

Error Details: The Jetpack server could not communicate with your site's XML-RPC URL. Please check to make sure http://example.com/xmlrpc.php is working properly. It should show 'XML-RPC server accepts POST requests only.' on a line by itself when viewed in a browser and should not have any blank lines or extra output anywhere. Find out how to fix this issue here: https://jetpack.com/support/getting-started-with-jetpack/what-do-these-error-messages-mean/blank-lines-xmlrpc/




curl -A 'Jetpack by WordPress.com' -d 'demo.sayHello' http://example.com/xmlrpc.php
なコマンドを打って






faultCode
-32700


faultString
parse error. not well formed




な場合


上これだけのエラーではよくわからないがどうやらモジュールがかけてるっぽい


apt-get install php7.0-intl
apt-get install php7.0-xsl
apt-get install php-xmlrpc

このあたり入れてから再起動でうまくいった


uname -a
Linux hoge 4.8.0-1-amd64 #1 SMP Debian 4.8.7-1 (2016-11-13) x86_64 GNU/Linux

PHP Version 7.0.13-2

install Chrome in Debian jessie

dpkg -i Downloads/google-chrome-stable_current_amd64.deb
Selecting previously unselected package google-chrome-stable.
(Reading database ... 93066 files and directories currently installed.)
Preparing to unpack .../google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (50.0.2661.86-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on fonts-liberation; however:
Package fonts-liberation is not installed.
google-chrome-stable depends on libappindicator1; however:
Package libappindicator1 is not installed.

dpkg: error processing package google-chrome-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Errors were encountered while processing:
google-chrome-stable


てことで

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
fonts-liberation libappindicator1 libdbusmenu-glib4 libdbusmenu-gtk4
libindicator7
Recommended packages:
indicator-application
The following NEW packages will be installed:
fonts-liberation libappindicator1 libdbusmenu-glib4 libdbusmenu-gtk4
libindicator7
0 upgraded, 5 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 1,134 kB of archives.
After this operation, 2,816 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.jp.debian.org/debian/ jessie/main fonts-liberation all 1.07.4-1 [835 kB]
Get:2 http://ftp.jp.debian.org/debian/ jessie/main libdbusmenu-glib4 amd64 12.10.2-1 [104 kB]
Get:3 http://ftp.jp.debian.org/debian/ jessie/main libdbusmenu-gtk4 amd64 12.10.2-1 [90.8 kB]
Get:4 http://ftp.jp.debian.org/debian/ jessie/main libindicator7 amd64 0.5.0-2 [52.2 kB]
Get:5 http://ftp.jp.debian.org/debian/ jessie/main libappindicator1 amd64 0.4.92-3.1 [52.5 kB]
Fetched 1,134 kB in 2s (543 kB/s)
Selecting previously unselected package fonts-liberation.
(Reading database ... 93172 files and directories currently installed.)
Preparing to unpack .../fonts-liberation_1.07.4-1_all.deb ...
Unpacking fonts-liberation (1.07.4-1) ...
Selecting previously unselected package libdbusmenu-glib4:amd64.
Preparing to unpack .../libdbusmenu-glib4_12.10.2-1_amd64.deb ...
Unpacking libdbusmenu-glib4:amd64 (12.10.2-1) ...
Selecting previously unselected package libdbusmenu-gtk4:amd64.
Preparing to unpack .../libdbusmenu-gtk4_12.10.2-1_amd64.deb ...
Unpacking libdbusmenu-gtk4:amd64 (12.10.2-1) ...
Selecting previously unselected package libindicator7.
Preparing to unpack .../libindicator7_0.5.0-2_amd64.deb ...
Unpacking libindicator7 (0.5.0-2) ...
Selecting previously unselected package libappindicator1.
Preparing to unpack .../libappindicator1_0.4.92-3.1_amd64.deb ...
Unpacking libappindicator1 (0.4.92-3.1) ...
Processing triggers for fontconfig (2.11.0-6.3) ...
Setting up fonts-liberation (1.07.4-1) ...
Setting up libdbusmenu-glib4:amd64 (12.10.2-1) ...
Setting up libdbusmenu-gtk4:amd64 (12.10.2-1) ...
Setting up libindicator7 (0.5.0-2) ...
Setting up libappindicator1 (0.4.92-3.1) ...
Setting up google-chrome-stable (50.0.2661.86-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for menu (2.1.47) ...

)

echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit 0


/usr/local/bin/vpnserver/vpncmd
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 4.19 Build 9605 (English)
Compiled 2016/03/06 21:09:57 by yagi at pc30
Copyright (c) SoftEther VPN Project. All Rights Reserved.

By using vpncmd program, the following can be achieved.

1. Management of VPN Server or VPN Bridge
2. Management of VPN Client
3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)

Select 1, 2 or 3: 1

Specify the host name or IP address of the computer that the destination VPN Server or VPN Bridge is operating on.
By specifying according to the format 'host name:port number', you can also specify the port number.
(When the port number is unspecified, 443 is used.)
If nothing is input and the Enter key is pressed, the connection will be made to the port number 8888 of localhost (this computer).
Hostname of IP Address of Destination: 192.168.x.y

If connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name.
If connecting by server admin mode, please press Enter without inputting anything.
Specify Virtual Hub Name:
Connection has been established with VPN Server "192.168.x.y" (port 443).

You have administrator privileges for the entire VPN Server.

VPN Server>



VPN Server>ServerPasswordSet
ServerPasswordSet command - Set VPN Server Administrator Password
Please enter the password. To cancel press the Ctrl+D key.

Password: ********
Confirm input: ********


The command completed successfully.

VPN Server>exit

Debian Jessie SoftEather 設定メモ

apt-get install build-essential
wget http://jp.softether-download.com/files/softether/v4.19-9605-beta-2016.03.06-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz
tar xzvf softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz

cd vpnserver/
make

cd ../

mv vpnserver /usr/local/bin/

cd /usr/local/bin/vpnserver

chmod 600 ./*
# chmod 700 ./vpncmd
# chmod 700 ./vpnserver




case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;

Snorby入れてみた Debian Wheezy

//とりあえず必要なパッケージなどを入れる(Rubyとかその周辺

apt-get install mysql-server mysql-client snort-mysql libyaml-dev git-core default-jre imagemagick libmagickwand-dev wkhtmltopdf build-essential libssl-dev libreadline-gplv2-dev zlib1g-dev libsqlite3-dev libxslt1-dev libxml2-dev libmysqlclient-dev libmysql++-dev apache2-prefork-dev libcurl4-openssl-dev ruby ruby-dev

//bundler railsのインストール
gem install bundler rails
//railsのバージョンを0.9.2に
gem install rake --version=0.9.2

//インストールしたい場所へ
cd /where/

gitからsnorbyを落とす
git clone http://github.com/Snorby/snorby.git

//諸設定
cd /where/snorby/config/
cp database.yml.example database.yml
cp snorby_config.yml.example snorby_config.yml
//snorby_config.ymlをDebianの環境に合わす
sed -i s/"\/usr\/local\/bin\/wkhtmltopdf"/"\/usr\/bin\/wkhtmltopdf"/g snorby_config.yml


//mysqlで新しいデータベース作成
mysql -uroot -p
create database snorby;
grant all on snorby.* to 'snorbyuser'@'localhost' identified by 'snorbypassword';
//作成したデータベースの設定を書き込む
vi database.yml


cd /where/snorby/

//必要なもの諸々インストール
bundle install --no-deployment
bundle install --deployment

//snorbyセットアップ
bundle exec rake snorby:setup


//Railsなソフトをブラウザーから見るためにpassengerをインストール
gem install passenger
passenger-install-apache2-module

//途中で

                                                                                      • -

Almost there!

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-4.0.38/buildout/apache2/mod_passenger.so

PassengerRoot /var/lib/gems/1.9.1/gems/passenger-4.0.38
PassengerDefaultRuby /usr/bin/ruby1.9.1

After you restart Apache, you are ready to deploy any number of web
applications on Apache, with a minimum amount of configuration!

//等と表示されるので要注意
LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-4.0.38/buildout/apache2/mod_passenger.so

PassengerRoot /var/lib/gems/1.9.1/gems/passenger-4.0.38
PassengerDefaultRuby /usr/bin/ruby1.9.1

//の部分を /etc/apache2/apache2.confの最後に追記
vi /etc/apache2/apache2.conf

vi /etc/apache2/sites-available/snorby
VirtualHost *:80>
ServerAdmin you@example.com
ServerName snorby.youraddress
DocumentRoot /where/snorby/public


AllowOverride all
Order deny,allow
Allow from all
Options -MultiViews


//な感じで作成

//サイトを有効化
a2ensite snorby
service apache2 reload


//ブラウザーでアクセス
初期ユーザー名:snorby@snorby.org
初期パスワード:snorby



参考
How-To: Installing Snort and Snorby on Debian | Hack under Debian
http://wolfer.blog.com/2013/06/28/how-to-installing-snort-and-snorby-on-debian/

-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

mysqlバックアップのお決まりの呪文
mysqldump -uroot -ppassword -x --all-databases > /backup/`date +%Y%m%d`mysqldump.sql
を唱えると

    • Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

などとエラー履かれたので対処法
エラー文通り --events付け加えればいい

mysqldump -uroot -ppassword -x --all-databases --events > /backup/`date +%Y%m%d`mysqldump.sql