Ubuntu Desktop 18.04でClamAVによるウィルスチェックを実行する!


$ sudo apt-get isntall
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo reboot


$ sudo apt install clamav clamav-daemon
$ sudo reboot

$ sudo cat /var/log/clamav/freshclam.log
Mon May 24 08:48:11 2021 -> WARNING: Can't download daily.cvd from https://database.clamav.net/daily.cvd 
Mon May 24 08:48:11 2021 -> Trying again in 5 secs... 
Mon May 24 08:48:16 2021 -> daily database available for download (remote version: 26179) 
Mon May 24 08:48:46 2021 -> ERROR: Download failed (28) 
Mon May 24 08:48:46 2021 -> ERROR: Message: Timeout was reached 
Mon May 24 08:48:46 2021 -> ERROR: Can't download daily.cvd from https://database.clamav.net/daily.cvd 
Mon May 24 08:48:46 2021 -> Giving up on https://database.clamav.net... 
Mon May 24 08:48:46 2021 -> ERROR: Update failed for database: daily 
Mon May 24 08:48:46 2021 -> ERROR: Database update process failed: Connection failed 
Mon May 24 08:48:46 2021 -> ERROR: Update failed. 
Mon May 24 08:48:46 2021 -> --------------------------------------


$ wget http://database.clamav.net/main.cvd
$ wget http://database.clamav.net/daily.cvd
$ wget http://database.clamav.net/bytecode.cvd

http://database.clamav.net/bytecode.cvd を手動でダウンロードしました。
その上で、teraterm から「ファイル」→「SSH SFC」を使って、main.cvd, daily.cvd, bytecode.cvd をEC2に放り込みます。

$ sudo mv main.cvd /var/lib/clamav/
$ sudo mv daily.cvd /var/lib/clamav/
$ sudo mv bytecode.cvd /var/lib/clamav/
$ sudo chown -R clamav:clamav /var/lib/clamav/

$ sudo reboot

$ sudo cat /var/log/clamav/freshclam.log
on May 24 11:51:18 2021 -> The database server doesn't have the latest patch for the daily database (version 26180). The server will likely have updated if you check again in a few hours.
Mon May 24 11:51:18 2021 -> main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Mon May 24 11:51:18 2021 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
Mon May 24 11:51:18 2021 -> --------------------------------------


$ sudo clamscan --infected --remove --recursive /home/

----------- SCAN SUMMARY -----------
Known viruses: 8531859
Engine version: 0.103.2
Scanned directories: 117
Scanned files: 1802
Infected files: 0
Data scanned: 195.30 MB
Data read: 169.32 MB (ratio 1.15:1)
Time: 36.215 sec (0 m 36 s)
Start Date: 2021:05:24 12:04:31
End Date: 2021:05:24 12:05:08




I wrote a column with a story called "The Emperor System is a Blockchain".


At that time, I did some research on Kojiki (Japanese mythology), which was quite interesting.


It's not bad to study Christianity, Islam, and Buddhism, but "Shinto" is also quite cool.

何がいいって『神社の見学が楽しくなる』―― この一言に尽きます。

The best thing about it is that it makes visiting the shrine fun.


If you know which deity is worshipped in this shrine, your sightseeing will be much more enjoyable.


And when you understand that, you can understand the history of the area.


To put it bluntly, it is very exciting to see the "regime side" and the "anti-regime side" or, to put it more bluntly, the "right side" or the "left side" or the "third force" centered on the emperor system -- however,


I may be the only one who sees the shrine that way.



The other day, I saw an advertisement in the newspaper for a hanging scroll of "Amaterasu".


It's easy to find them on Amazon.


On the other hand, the "Amaterasu" in my mind is a "naughty woman"


I think there is a certain need for this kind of hanging scroll.


Well, it's not a bad interior design, and above all, "Amaterasu" is the first block in the blockchain called the Emperor System.

NFT(Non-Fungible Token)の一番最初のブロックといっても良いかもしれません ―― そのオーナーは、今上の天皇陛下、でいいの・・・かな?

It may be the first block of NFT (Non-Fungible Token) -- its owner is the current emperor, is that right?


Well, that's aside.



I had an accident last night, blowing up my folder of English papers that I've been writing for the past few months.


This was right after I made major revisions on two papers last night.


I tried to recover it by any means possible, but the last backup was too old.

迫り来る投稿締切日、どこにもないマスターの原稿 ―― 完全にパニック状態でした。

The looming submission deadline, the master manuscript nowhere to be found -- I was in a complete panic.


I tried to back up the folder, but the system didn't recognize the folder, so I couldn't do anything about it.


However, tampering with the master file could have completely destroyed the file system to an unrecoverable level.


I was in a state of "bloodlust".


ですので、ググって、調べて、祈るような気持ちで、">chkdsk f: /f"を実施しました。

So I googled, researched, and prayed, and did ">chkdsk f: /f".

ファイルシステムが復旧した時 ―― 私は、ディスプレイの向こうに「神」を見ました。

When the file system confirmed the recovery -- I saw "God" across the display.


It was 5:30 this morning.


I thought I caught a glimpse of God's halo through the window.



So, although I have no plans to purchase the hanging scroll "Amaterasu",

「chkdsk f: /f」という掛け軸が販売されるのであれば、今、直ぐにでも購入する準備があります。

If the hanging scroll "chkdsk f: /f" is sold, I am ready to buy it right now.



A Liberal Democratic Party (LDP) lawmaker's comments about LGBT people seem to be causing problems.


I'm thinking, 'Oh, something's happened again.

とは言え、今回は、一次情報からの調査は行っていません ―― もう面倒くさくて。

This time, however, I didn't do any research from primary information -- It seems to be troublesome.


For example, the investigation into Ms. Sugita's so-called "women always lie" comment took up three full days of my time.


At that time, I realized that if I get involved with strange people, I will end up in trouble.



To be honest, LGBT issues are quite difficult.


I had a very bad experience when I was working on a series of articles about transgender people.

『問題の当事者でもない奴は、語るな』という主張をする人間が ―― 極めて少数ではありますが、存在します。

There are a few people who say, "Don't talk about it if you're not a part of the problem"


In fact, since I am not a party to the problem, I have no way to judge whether my 'position' is correct or not.

それが、ごく一部の人間からであっても、『語るな』と言われれば ―― 私は語りません。

If I'm told not to talk about it, even by a few people -- I won't talk about it.


In fact, now I have stopped talking about this issue.


(However, I have been consulted privately about technical details, and I am answering to the best of my knowledge.)



I think it is not a good idea to criticize the words and actions of people who do not know where they stand in relation to LGBT people.


This is because I think there are a lot of people like me who get deflated by criticism and come to "I'm not going to touch this issue".


Metaphorically speaking,

―― 自分なりに考えた宿題の答を持って職員室に出向いたら、先生に凄い勢いで怒鳴られて叱られた

"When a student go to the staff room with the answers to their homework, which she/he had worked out in their own way, the teacher yelled at them in a fierce manner"


If that happens, the student will never go to that teacher again to ask a question.


税金、高齢化や、少子化、教育 ―― これは、全ての国民が「当事者」です。

Taxes, aging population, declining birth rate, education -- these are all things that every citizen is a "party" to.

コンピュータ、人工知能、ビットコイン、EtherCAT ―― これは、私にとっては『どこからでも、かかってこいや!』の意味で「当事者」です

Computers, artificial intelligence, Bitcoin, EtherCAT -- these are all "parties" to me in the sense of "come at me from anywhere! "


Even I, a person who is often asked, "Is there anything you are scared of, Mr. Ebata?" (misunderstanding), am really "scared" of discussing LGBT issues.


Because no matter how much I study, I will never know what is the right answer.



(Continuation from yesterday)


I am the owner of the domain name "kobore.net".


So, I get a lot of emails selling domain names like "kobore.com", "kobore.co.jp", etc. ("kobore.jp" seems to have an owner).


To begin with, my "kobore.net" was obtained for IP network experiments, and was never intended to be used as it is now (for posting blogs and columns).


However, I have "kobore.net", so I can create as many subdomain names as I want.

■wp.kobore.net WordPress用のドメイン名

- wp.kobore.net for WordPress

■tech.kobore.net 技術系の実験用のドメイン名

- tech.kobore.net for technical experiments

あと、自分でドメイン名を持っていると、covid19@kobore.net やら、blockchain_20201010@kobore.net など、必要な時に作って、必要がなくなれば捨てることができますので、便利です。

Also, it is convenient to have my own domain name, such as covid19@kobore.net or blockchain_20201010@kobore.net, because I can create it when I need it, and discard it when I no longer need it.



I have created and have a public email address for my personal use, and it is also useful to have a domain name.


Sometimes I get emails from people with mental or cerebral disabilities that make me uncomfortable, but after three times, I will not hesitate to change my public email address.


I am a man who can

―― 1人の不快なメールを読めなくする為に、それ以外の複数の人との連絡手段を切り捨てる

"cut off all other means of communication with multiple people in order to make one unpleasant email unreadable"


and, is not afraid of such things.


This has the side effect of making me feel good that I've wiped out all the spam.


Come to think of it, I did the same thing with changing the phone number of my cell phone (smartphone).


However, the new email address will be opened on my website, and I may change it back to the original one in a month or so, secretly.



If you have your own domain name, you can use these little tricks.


If you think you can enjoy this kind of thing, I recommend that you try get a domain name.



In my mailbox, I found an ad that said, "A quality used domain name can be yours!"

―― 優良中古ドメインって何?

"What is a good used domain name?"


Looking them up and I came to know,


- A Domain name that was acquired at a time when they were not treated as trademarks


- The administrator of the domain name is now unknown,


- the domain name that seems to be hard to find nowadays (almost like common nouns)




For example,

chuukosha.jp 中古車(Used car)

effort.jp 努力

kenko.jp 健康(health)

class.jp クラス

otsukai.jp おつかい(errand)

background.jp バックグラウンド


Well, these are indeed good, and used domain names.


always3.jp 映画『ALWAYS 三丁目の夕日 '64』

always3.jp The movie "ALWAYS Sunset on Third Street '64

bananakayo.jp 映画『こんな夜更けにバナナかよ 愛しき実話』

bananakayo.jp The Movie "This Late at Night, Do you give me Banana : A True Story


Thus, it seems that some domain names were used in movie advertisements.


(To be continued)


Ubuntu Desktop 18.04でClamAVによるウィルスチェックを実行する!

を参考にして、ClamAVを、Amazon Lightsailにインストールしたら、(それが原因かどうかは、今一つはっきりしないんだけど)以下のような問題が発生した。

Amazon lightsailにsshログインできなくなった件 (ClamAV のアンインストールと AWS inspectorのアンインストール)

けど、お勧めされたので、AWS EC2(Ubuntu Desktop 18.04)の方には、週明けにインストールする予定。




今日も、Amazon lightsailにsshログインできなくなって、パニックになっていました。

原因は、ウイルスチェックツールのClamAVのインストールと、AWS inspectorのインストール(Amazon lightsailでは動かない)が原因と考えられました。







ubuntu@ip-123-45-67-89:~$ sudo apt-get remove --purge clamav clamav-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clamav-base clamav-freshclam clamdscan libclamav9 libtfm1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
clamav* clamav-daemon*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1881 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 196083 files and directories currently installed.)
Removing clamav (0.103.2+dfsg-0ubuntu0.20.04.2) ...
Removing clamav-daemon (0.103.2+dfsg-0ubuntu0.20.04.2) ...
Processing triggers for man-db (2.9.1-1) ...
(Reading database ... 196045 files and directories currently installed.)
Purging configuration files for clamav-daemon (0.103.2+dfsg-0ubuntu0.20.04.2) . ..
Processing triggers for systemd (245.4-4ubuntu3.6) ...


ubuntu@ip-123-45-67-89:~$ systemctl list-unit-files | grep clamav
clamav-freshclam.service enabled enabled
ubuntu@ip-123-45-67-89:~$ sudo systemctl stop clamav-freshclam

さらに、AWS inspectorも強制アンインストールを実施

ubuntu@ip-172-26-7-19:~$ systemctl list-unit-files | grep aws
awsagent.service generated enabled

ubuntu@ip-172-26-7-19:~$ sudo apt-get remove --purge awsagent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clamav-base clamav-freshclam clamdscan libclamav9 libtfm1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 196040 files and directories currently installed.)
Removing awsagent (1.1.1677.0-102677) ...
Stopping awsagent-agent service:
Stopping awsagent (via systemctl): awsagent.service.
Removing awsagent-agent service:
Killing existing AwsAgent Updater Cron Jobs:
Found existing awsagent updater cron job PID: 1462
Processing triggers for systemd (245.4-4ubuntu3.6) ...
(Reading database ... 196024 files and directories currently installed.)
Purging configuration files for awsagent (1.1.1677.0-102677) ...
dpkg: warning: while removing awsagent, directory '/opt/aws/awsagent/etc' not empty so not removed

最期に、sudo reboot をして、起動を確認しました。


教訓: メモリ1G程度の Amazon lightsailに、あまり凝った仕組みを組込むな





I asked to my senior daughter, who is involved in "mechanics" as both a hobby and a job,

―― スノータイヤからノーマルタイヤへの交換やってみるか?

"Do you want to try changing from snow tires to normal tires?"


She said "I do try it", so I didn't help but watch her, just gave her verbal instructions.


I was a little surprised at how well she did it.



In fact, changing a tire is not that difficult, as long as you have the right equipment.


At least it's easier than speaking English, and easier than operating a smartphone.

こちらが、私の記録用の映像なのですが(YouTubeに繋がります) ――

Here's my video for the record (it leads to YouTube) --.

娘の映像を記録しておけば、もっとPV上がるな ―― と気がついた時は、作業が終っていました。

If I record my daughter's video, I'll get more PV...and when I realized that, the work was done.