まず 以下をご覧ください。
https://www.youtube.com/watch?v=ZxHt3l3i8k4&feature=youtu.be
これは kdenliveで作りました
https://www.youtube.com/watch?v=WCxIQCBdj34
に
「韓国人が暴く反日韓国の嘘」
があります。
これを読めば
を読まなくても 大体のことはわかります。
トラブル解消
1) rm /var/lib/pacman/db.lck
次のラックサーバーは某オークションで 幸運にも3500円で落札 ラッキー!(但し送料は1500円)。
2CPUで 8Gメモリですが,流石にこの値段では ハードディスクついてないです。
但し ラックサーバーなので音は気になります。 レーシングカーは喧しい
さて レイドの操作が結構面倒です。
以下のように Virtual Disk のところで F2 を押して VD を消し再構成します
結果以下になってます
initializationをすると 0.1秒位で出来てます
top - 05:59:47 up 4 min, 1 user, load average: 0.47, 0.52, 0.25
Tasks: 317 total, 1 running, 316 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0.0 us, 0.0 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.3 hi, 0.0 si, 0.0 st
%Cpu1 : 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu4 : 13.4 us, 0.3 sy, 0.0 ni, 86.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu5 : 0.0 us, 0.0 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.3 hi, 0.0 si, 0.0 st
%Cpu6 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu7 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu8 : 0.3 us, 0.0 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu9 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu10 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu11 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu12 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu13 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu14 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu15 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 16025.3 total, 14250.1 free, 902.8 used, 872.5 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 14728.9 avail Mem
72GB 2.5インチSAS2個(節電のため)のraid0で
# hdparm -t /dev/sda1
/dev/sda1:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Timing buffered disk reads: 1180 MB in 3.01 seconds = 391.91 MB/sec
# hdparm -t /dev/sda1
/dev/sda1:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Timing buffered disk reads: 1180 MB in 3.01 seconds = 391.91 MB/sec
確か72GB 2.5インチSAS4個のraid0では 500MB/sec強だった記憶がある
1) つぎは
NEC Express5800 GT110f-S [DC/Pentium G3220 3.00GHz 2コア
に
arcolinuxにもいれました。
GT110f-S取説
raid からのブートしかできない。
BIOSでは いじっても SATA ハードディスクが認識しない。
よって
jumper pin で sata HDD 起動に変えました。
下の図の 左がRAID
右がRAIDを外したもの(SATA) です
なおraidを設定してもその対象は SASではなく SATAです。
clasical これ多分 クラシック音楽向けとおもいますが
というふうに クラッシック音楽の楽器は 10000 Hz 以上の音はださないので
10000 Hz 以上は雑音と考え gain を抑えてますねー
2)arcoなんだか クラーイ 画面です。
デスクトップの絵が 次々に変わって行きます
楽しいことは楽しいですが ちょっと絵柄が暗い。 でconkyzenで変えると以下
3) pulseaudio-equalizer-ladspa 2.7.1-2
がはいってます。
3)http://superjeter007.blog.jp/archives/26071120.html
がいいページです
特に
mirror
pacman -Syyu
https://arcolinux.com/use-all-your-cores-during-build-or-installation-of-packages/
だと
sh .config/openbox/scripts/000-use-all-cores-makepkg-conf-v2.sh
これにて以下
You have 2 cores.
Changing the makeflags for 2 cores.
Changing the compression settings for 2 cores.
################################################################
### All cores will be used during building and compression ####
################################################################
arcolinux-v6.9.2-2018.07.17.iso を DVDに焼いて これで起動するだけ
日本語は
まず フォント
pacman -S otf-ipafont
日本語入力は
nano /home/taro/.xprofile を
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
この後
pacman -S fcitx-im fcitx-configtool fcitx-mozc
4)m.2 SSD について
5)中華アンプ と USBマイク音声出力は USBケーブルを通して 中華アンプへです
音声入力は 下図のUSBマイクからです
これを両立させるには 以下です
設定は
出力は
入力は
# bluetoothctl
[bluetooth]# list
[bluetooth]# select <controller mac>
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# agent on
[bluetooth]# devices
[bluetooth]# pair <mouse mac>
[bluetooth]# trust <mouse mac>
[bluetooth]# connect <mouse mac>
https://wiki.archlinux.jp/index.php/Bluetooth より
起動後に自動で有効にする
デフォルトでは、再起動後に Bluetooth アダプタが有効になりません。hciconfig hci0 up を使用する以前の方法は非推奨となりました。詳しくは リリースノート を見てください。現在では、AutoEnable=true を /etc/bluetooth/main.conf の [Policy] セクションの下部に追加するだけです:
/etc/bluetooth/main.conf
[Policy]
AutoEnable=true
# 自動ログイン
# groupadd -r autologin
# gpasswd -a USERNAME autologin
./comment-out.bat /etc/lightdm/lightdm.conf
[LightDM]
run-directory=/run/lightdm
[Seat:*]
greeter-session=lightdm-gtk-greeter
user-session=xfce
session-wrapper=/etc/lightdm/Xsession
greeter-setup-script=/usr/bin/numlockx on
autologin-user=USERNAME
autologin-user-timeout=0
autologin-session=xfce
[XDMCPServer]
[VNCServer]
A) nfs
https://www.google.co.jp/search?lr=lang_ja&hl=ja&tbs=lr%3Alang_1ja&source=hp&q=arch%20nfs
を見たらいいです。
DELL側で
./comment-out.bat /etc/exports
/srv/nfs4 192.168.2.0/24(rw,fsid=root,crossmnt)
そして
でいけます。
NEC側で
# df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 4052644 0 4052644 0% /dev
run 4059460 33900 4025560 1% /run
/dev/sda1 131069988 48454984 75914000 39% /
tmpfs 4059460 0 4059460 0% /dev/shm
tmpfs 4059460 0 4059460 0% /sys/fs/cgroup
tmpfs 4059460 14872 4044588 1% /tmp
tmpfs 811892 12 811880 1% /run/user/1002
tmpfs 811892 0 811892 0% /run/user/1001
192.168.2.113:/srv/nfs4 267573248 131318784 122592256 52% /NFS
と確かにマウントされてますね
B) ブラックリストを遮断
WEBサーバーを立ち上げると、名前もアドレスも秘していてもすごい数のアタックがきます(下記を見て下さい)、従ってこの対処をしてないと乗っ取られ踏み台にされ悪の協力者になるかもしれません。
https://wiki.archlinux.jp/index.php/Ipset
はいいサイトです
国別リストは https://ipvx.info/country/range/
raspberry p1---wifi router---eno2:Linux:eno1--->internet
イントラネットは 192.168.2.0/24です。
https://qiita.com/ryoheiizm/items/dc82461ad127c5ea0703
は 高度でこれを参考にした試案です。
# cat firewall.bat
cd /tmp
curl -O http://nami.jp/ipv4bycc/cidr.txt.gz && gunzip -f cidr.txt.gz
iptables -F
iptables -X
iptables -Z
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
ipset create -exist WHITELIST hash:net
ipset flush WHITELIST
sed -n 's/^JP\t//p' cidr.txt | while read ADDRESS; do ipset add WHITELIST $ADDRESS; done
ipset create -exist BLACKLIST hash:net
ipset flush BLACKLIST
sed -n 's/^\(CN\|HK\|RU\|KP\|KR\)\t//p' cidr.txt | while read ADDRESS; do ipset add BLACKLIST $ADDRESS; done
ipset save
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eno2 -p tcp -s 192.168.2.64/26 --dport 22 -j ACCEPT
iptables -A INPUT -i eno2 -p tcp -s 192.168.2.128/26 --dport 22 -j ACCEPT
iptables -A INPUT -i eno1 -p tcp -s 1.2.3.4/32 --dport 22 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 80 -m set --match-set WHITELIST src -j ACCEPT
iptables -A INPUT -i eno2 -p tcp -s 192.168.2.64/26 --dport 80 -j ACCEPT
iptables -A INPUT -i eno2 -p tcp -s 192.168.2.128/26 --dport 80 -j ACCEPT
iptables -I INPUT -p icmp --icmp-type 0 -j ACCEPT
iptables -I INPUT -p icmp --icmp-type 8 -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -m set --match-set BLACKLIST src -j DROP
iptables -A INPUT -s 224.0.0.0/4 -j DROP
iptables -A INPUT -d 255.255.255.255 -j DROP
iptables-save
これにて
# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- 192.168.2.64/26 anywhere tcp dpt:ssh
ACCEPT tcp -- 192.168.2.128/26 anywhere tcp dpt:ssh
ACCEPT tcp -- いろは.akita.ocn.ne.jp anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http match-set WHITELIST src
ACCEPT tcp -- 192.168.2.64/26 anywhere tcp dpt:http
ACCEPT tcp -- 192.168.2.128/26 anywhere tcp dpt:http
DROP all -- anywhere anywhere match-set BLACKLIST src
DROP all -- base-address.mcast.net/4 anywhere
DROP all -- anywhere 255.255.255.255
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ipset l -n
blackset
WHITELIST
BLACKLIST
ちょとfirewallをかけないでいると以下のようにすごく 来る
./nginx-log.bat | grep 19/Jan/2019 | sort -k 2 -t "[" にて
わずか1分で123.207.236.127からです
123.207.236.127 - - [19/Jan/
2019:04:18:01 +0900] "GET /hell.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:01 +0900] "GET /license.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:01 +0900] "GET /log.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:01 +0900] "GET /pmd_online.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:03 +0900] "GET /x.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:05 +0900] "GET /desktop.ini.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:05 +0900] "GET /htdocs.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:05 +0900] "GET /shell.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:05 +0900] "GET /z.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:09 +0900] "GET /lala-dpr.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:09 +0900] "GET /lala.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:09 +0900] "GET /text.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:09 +0900] "GET /wpc.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:09 +0900] "GET /wpo.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:10 +0900] "GET /muhstik.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:10 +0900] "GET /wp-config.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:13 +0900] "GET /lol.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:13 +0900] "GET /muhstik2.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:13 +0900] "GET /muhstik-dpr.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:13 +0900] "GET /muhstiks.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:13 +0900] "GET /uploader.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:14 +0900] "GET /cmd.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:15 +0900] "GET /cmv.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /appserv.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /cmdd.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /cmd.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /knal.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /scripts/setup.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:17 +0900] "GET /shell.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:18 +0900] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:21 +0900] "GET /cacti/plugins/weathermap/editor.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:21 +0900] "GET /phpmyadmin/scripts/db___.init.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:21 +0900] "GET /phpMyAdmin/scripts/db___.init.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:21 +0900] "GET /plugins/weathermap/editor.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0"
123.207.236.127 - - [19/Jan/2019:04:18:21 +0900] "POST /wuwu11.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:22 +0900] "POST /xw1.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:22 +0900] "POST /xw.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /9678.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /qaq.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /sheep.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /s.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /wc.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /w.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:25 +0900] "POST /xx.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:26 +0900] "POST /db.init.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:26 +0900] "POST /db_session.init.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:29 +0900] "POST /db_dataml.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:29 +0900] "POST /db_desql.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:29 +0900] "POST /db__.init.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:29 +0900] "POST /m.php?pbid=open HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:29 +0900] "POST /wp-admins.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:30 +0900] "POST /mx.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:33 +0900] "POST /conflg.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:33 +0900] "POST /conflg.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:33 +0900] "POST /qq.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:33 +0900] "POST /wshell.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:33 +0900] "POST /xshell.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:34 +0900] "POST /lindex.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:34 +0900] "POST /phpstudy.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:37 +0900] "POST /ak47.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:37 +0900] "POST /ak48.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:37 +0900] "POST /feixiang.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:37 +0900] "POST /phpStudy.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:37 +0900] "POST /weixiao.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:38 +0900] "POST /xiao.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:39 +0900] "POST /yao.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:41 +0900] "POST /defect.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:41 +0900] "POST /pe.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:41 +0900] "POST /q.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:41 +0900] "POST /webslee.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:42 +0900] "POST /hm.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:45 +0900] "POST /aotu7.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:45 +0900] "POST /aotu.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:45 +0900] "POST /cainiao.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:45 +0900] "POST /zuo.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:45 +0900] "POST /zuoshou.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:46 +0900] "POST /cmd.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:48 +0900] "POST /bak.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:49 +0900] "POST /l6.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:49 +0900] "POST /l7.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:49 +0900] "POST /l8.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:49 +0900] "POST /q.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:49 +0900] "POST /system.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:50 +0900] "POST /56.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:53 +0900] "POST /min.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:53 +0900] "POST /mz.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:53 +0900] "POST /wanan.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:53 +0900] "POST /wan.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:53 +0900] "POST /xx.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:53 +0900] "POST /yumo.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:57 +0900] "POST /12.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:57 +0900] "POST /aw.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:57 +0900] "POST /hh.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:57 +0900] "POST /qq.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:57 +0900] "POST /ssaa.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:58 +0900] "POST /ak.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:58 +0900] "POST /infoo.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:58 +0900] "POST /ip.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:58 +0900] "POST /qq.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:04:18:59 +0900] "POST /1213.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
123.207.236.127 - - [19/Jan/2019:
04:18:59 +0900] "POST /qwe.php HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"8.0"
すごい数で何らかのツールによる123.207.236.127のものでしょう
firewall.batをすると
./nginx-log.bat | grep 19/Jan/2019:05 しても
なんもでてきません、遮断してます。
なお
IPアドレスの割り当て国検索
国名を調べたいIPアドレス
 123.207.236.127
検索
国名: 中国
でした。
なお
./comment-out.bat nginx-log.bat
sudo cat /var/log/nginx/access.log | sed '/^192.168.2.115/d' - \
| sort -k 2 -t "[" - | sed "s/^/\n/g" -
ksというファイルの各行の最初に abc XYZ を加えて それをks-1にする
# sed "s/^/abc XYZ /g" ks > ks-1
C)種々
/boot/grub/grub.cfg
menuentry 'ArcoLinux Linux' --class arcolinux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d3899906-ad70-4382-99f1-e9682a0765e1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root d3899906-ad70-4382-99f1-e9682a0765e1
else
search --no-floppy --fs-uuid --set=root d3899906-ad70-4382-99f1-e9682a0765e1
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=d3899906-ad70-4382-99f1-e9682a0765e1 rw quiet resume=UUID=0f11e838-ed7c-4feb-bd0c-8cfc9f58708e audit=0 loglevel=3
echo 'Loading initial ramdisk ...'
initrd /boot/amd-ucode.img /boot/initramfs-linux.img
}
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
/etc/fstab は
①UEFIでは
UUID=8052-7FA7 /boot/efi vfat umask=0077 0 2
UUID=d3899906-ad70-4382-99f1-e9682a0765e1 / ext4 defaults,noatime 0 1
UUID=0f11e838-ed7c-4feb-bd0c-8cfc9f58708e swap swap defaults,noatime 0 2
あるいは
UUID=8052-7FA7 /boot/efi vfat umask=0077 0 2
UUID=d3899906-ad70-4382-99f1-e9682a0765e1 / ext4 defaults,noatime 0 1
UUID=0f11e838-ed7c-4feb-bd0c-8cfc9f58708e swap swap defaults,noatime 0 2
tmpfs /tmp tmpfs rw,nodev,nosuid,size=2G 0 0
②BIOSでは
/dev/sda1 / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
/dev/sda2 swap swap defaults,noatime 0 2
D)arecord
alsa-utils をいれる
arecord -f S16_LE record.wav聞くには aplay
E)samba
/etc/samba/smb.conf
-------------------------------
[global]
idmap config * : backend = tdb
idmap config * : range = 3000-7999
workgroup = WORKGROUP
client max protocol = NT1
server string = Samba Server
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
逆にLINUX側から windows10にファイルを転送するには
pacman -Sy cifs-utils
その後
mount.cifs -o "username=mii,password=bii" //192.168.31.95/open /mnt
にて
# df
Filesystem Size Used Avail Use% Mounted on
dev 1.9G 0 1.9G 0% /dev
run 1.9G 9.1M 1.9G 1% /run
/dev/sda1 15G 9.3G 4.6G 67% /
tmpfs 1.9G 50M 1.8G 3% /dev/shm
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 1.9G 8.0K 1.9G 1% /tmp
/dev/sdb1 138G 613M 131G 1% /home
tmpfs 375M 36K 375M 1% /run/user/1000
//192.168.31.95/open 60G 20G 40G 33% /mnt
F)ngff
# fdisk -l
Disk /dev/sda: 14.94 GiB, 16013942784 bytes, 31277232 sectors
Disk model: SanDisk SDSA6MM-
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcea46272
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 31262489 31260442 14.9G 83 Linux
Disk /dev/sdb: 149.5 GiB, 160041885696 bytes, 312581808 sectors
Disk model: WDC WD1600BEVT-0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 16779264 312581807 295802544 141.1G 83 Linux
/dev/sdb2 2048 16779263 16777216 8G 82 Linux swap / Solaris
Partition table entries are not in disk order.
をみてわかるとおり sdaは ngffの わずか16GBです。
# df
Filesystem Size Used Avail Use% Mounted on
dev 1.9G 0 1.9G 0% /dev
run 1.9G 9.2M 1.9G 1% /run
/dev/sda1 15G 9.5G 4.4G 69% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 1.9G 24K 1.9G 1% /tmp
/dev/sdb1 138G 596M 131G 1% /home
tmpfs 375M 36K 375M 1% /run/user/1000
しかし
hdparm -t /dev/sda1
/dev/sda1:
Timing buffered disk reads: 744 MB in 3.01 seconds = 247.51 MB/sec
普通の機械式ハードディスクsdbは
# hdparm -t /dev/sdb1
/dev/sdb1:
Timing buffered disk reads: 228 MB in 3.01 seconds = 75.62 MB/sec
と速度が 1/3以下ですね
なお
/etc/fstab
UUID=25cf093c-8943-4cc5-982e-d8e5329a0b6f / ext4 defaults,noatime,discard 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
UUID=d486ba3d-034a-4fb6-8b96-aa97a26fe5b6 /home ext4 defaults,noatime 0 1
UUID=6bf230af-9b31-4880-9f28-63a4191cc04e swap swap
defaults,noatime
0 2
G)NFS
サーバー側では
/etc/exports
/home/nfs4 192.168.3.0/24(rw,sync,fsid=0,no_subtree_check)
nfs-server.bat
ifconfig | grep 192.168
exportfs -arv
systemctl restart nfs-server.service
chmod -R 777 /home/nfs4
echo '-----'
ls /home/nfs4
echo
echo
echo
echo '-----'
cat /etc/exports
echo '# ---> mount.nfs4 192.168.x.y:/home/nfs4 /NFS'
クライアント側では nfs4 ではうまく行かないので
nfs-client.bat
umount /NFS
mount.nfs 192.168.3.24:/home/nfs4 /NFS
df
H) crontab -l
@reboot /home/nv/nat.bat
0
21
*
*
*
halt -p
#180分後、コンピュータを停止後に電源を切る
@reboot shutdown -h +180
I)terminal の フォントの大きさを変える
ctrl+shift を押しながら マウスの中ボタンをグリグリする
J)縦置きモニター
pacman -S iio-sensor-proxyなどして
tate.bat
xrandr --output DVI-0 --rotate left
にて
なお
pacman -Q| grep xrandr
libxrandr 1.5.2-1
xorg-xrandr 1.5.1-1
だ
しておけば 最初から縦長がくる
H)/home を ntfs に
cat /etc/fstab
/dev/sda1 / ext4 defaults,noatime,discard 0 1
/dev/sdb1 /home ntfs-3g defaults,noatime 0 0
/dev/sdb2 swap swap defaults,noatime 0 2