V-antena and Tanimoto's page

谷本の備忘録・雑記帳・work

>

カテゴリー: PC-OS-IT

CATEGORY ARCHIVE

リモートデスクトップでMathematicaが立ち上がらなかった。下記のURLにあった解決策を実行したら立ち上がった。
Mathematica on Raspberry pi2 failed starting up under RDP condition. ( RDP disconnected and Mathematica didn’t run) Fortunately I found a solution at the following site.
'https://www.raspberrypi.org/forums/viewtopic.php?f=94&t=131051

――-solution ――
'$ sudo apt-get install libgl1-mesa-swx11

理由不明もWindows 8.1にvirtualboxをinstallしようとすると、fatal errorとなり失敗。 Install途中でUSBの設定箇所をinstall対象からはずしたところ、installできた。

My installation trial of virtualbox into windows8.1 failed as fatal error. So I omitted USB support from installation conditions and succeeded the installation
.

There were many ufw block logs in syslog, ufw.log and messages under /var/log/
,like as
Apr 15 16:29:05 raspberrypi kernel: [2831949.081700] [UFW BLOCK] IN=wlan0 OUT= MAC=xxxxxxxxxxxxxxxx SRC=IP address of router DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0xC0 TTL=1 ID=28502 PROTO=2

Work around:
$ sudo ufw allow in from ‘IP address of router’ to 224.0.0.1
or
$ sudo ufw block in from ‘IP address of router’ to 224.0.0.1

Another garbage was like as
Apr 15 16:41:44 raspberrypi rsyslogd-2007: action ‘action 18’ suspended, next retry bla bla bla

Work around:
$ sudo nano /etc/rsyslog.conf

Comment out of rear part such as
#daemon.;mail.;\
#news.err;\
#.=debug;.=info;\
#.=notice;.=warn |/dev/xconsole

then reboot

wordpress 用のデータをバックアップするためにExpectを使ってバックアップのためのス
クリプトを作ったので掲載。 後はcronで自動実行。
To backup wordpress data easily, I created a script with Expect and post it to
this site.

‘ install method in debian, ubuntu, raspbian
$ sudo apt-get install expect

‘script
――――from here―――――――――――――――――-
#!/usr/bin/expect
set timeout 300
spawn sudo scp -r aaa@192.168.xxx.yyy:/abc /backups/xxx
expect “aaa@192.168.xxx.yyy’s password:”
send “password\n”
expect “aaa@hostname ~ $”
spawn sudo scp -r aaa@192.168.xxx.yyy:/defg /backups/xxx
expect “aaa@192.168.xxx.yyy’s password:”
send “password\n”
expect “aaa@hostname ~ $”
spawn sudo scp -r bbb@192.168.zzz.uuu:/abc /backups/zzz
expect “bbb@192.168.zzz.uuu’s password:”
send “password2\n”
expect “bbb@hostname2 ~ $”
exit 0
――――――― until here―――――――――?

aaa, bbb, xxx, yyy, abc, defg, abc, hostname, hostname2 are
dummy just for open for public.

My web server is not running on a rental server. So FTP is not permitted. Regul
ar update method is conducted with FTP.
So I updated wordpress as following.

レンタルサーバーではないので、外部からのFTPを許可していない。wordpress内の通
常の更新ではFTPを使うので、WEBで調べて次の様にして更新した。

Step1

sudo nano wp-config.php
#insert the following line into wp-config.php

define(‘FS_METHOD’, ‘direct’);

Step2
record current chown status

ls -l
ls -l wordpress
ls -l wordpress/wp-content

Step3
cd wordpress/wp-content
sudo chmod 707 plugins themes upgrade
cd ../..
sudo chown -R www-data:www-data wordpress

Step4
wordpressから更新 プラグインも一緒に更新
update wordpress by wordpress itself.
plug -in can be uodate too.

Step5
Recover of changes by step1 and step3

Finally test access to wordpress page.

V-antena and Tanimoto's page

あなたはIPv4でアクセスしています