V-antena and Tanimoto's page

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

>

カテゴリー: Raspberry pi

CATEGORY ARCHIVE

Voice3 kitを購入しセットアップした。

なお、マニュアルと違う点が以下あり

1.sudo apt install at-spi2-core が必要だった
2.デモプログラムの位置は
src/examples/voice/assistant_library_demo.py
3.エラーになると、rm ~/.asoundrc が必要かも

あと、英語で話してもなかなか認識してくれない

リモートデスクトップで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

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.

As the following warning appeared after introducing of a domain name, I fixed it
by modifying of /etc/hosts.

Warning:

apache2: Could not reliably determine the server’s fully qualified domain name,
using 127.0.1.1 for ServerName

Fix:

sudo nano /etc/hosts

before
127.0.1.1 host_name

after
127.0.1.1 domain_name host_name

Then restart apache.

V-antena and Tanimoto's page

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