インストールには 時間かかるけど
インストール後は 爆速で動く
https://ja.wikipedia.org/wiki/%E3%83%81%E3%83%99%E3%83%83%E3%83%88%E9%AB%98%E5%8E%9F より
チベット高原から起こる河川
黄河の上流部のマチュ河、
長江(揚子江)の上流部のディチュ河、
メコン河、
サルウィン川(怒江)、
インダス川、
ガンジス川の上流ヤルンツァンポ河など
国際河川の単一水源では世界最大級である。
debian系よりarch系がはやいのだが
arch系列のなかでも こいつはダントツ
インストに時間(2〜3時間)かかるのは インスト時に 最適化するため?
1) cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector --protocol https --age 1 --sort rate --number 10
# When: 2020-07-21 13:27:09 UTC
# From: https://www.archlinux.org/mirrors/status/json/
# Retrieved: 2020-07-21 13:25:35 UTC
# Last Check: 2020-07-21 13:12:04 UTC
Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch
Server = https://download.nus.edu.sg/mirror/archlinux/$repo/os/$arch
Server = https://ind.mirror.pkgbuild.com/$repo/os/$arch
Server = https://arch.hu.fo/archlinux/$repo/os/$arch
Server = https://archlinux.mirror.digitalpacific.com.au/$repo/os/$arch
Server = https://archmirror1.octyl.net/$repo/os/$arch
Server = https://muug.ca/mirror/archlinux/$repo/os/$arch
Server = https://ftp.sudhip.com/archlinux/$repo/os/$arch
Server = https://plug-mirror.rcac.purdue.edu/archlinux/$repo/os/$arch
Arch linuxで「データベースをロックできません」というエラーを修正する方法
rm /var/lib/pacman/db.lck
2)日本語 よみ(フォント) かき(fcitx-mozc)について
日本語入力は
nano .xprofile を
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
この後
pacman -Sy otf-ipafont fcitx-im fcitx-configtool fcitx-mozc cups ghostscript evince poppler-data
さらに
pacman -Sy chromium kolourpaint nautilus
systemctl enable org.cups.cupsd.service
xfce4-terminalを _を表示するのに 以下とした
親PC 192.168.100.1 を踏み台にしてインターネットにでる(但し 親PCはnatしてないといけない)
route.bat
route add default gw 192.168.100.10
rm /etc/resolv.conf
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
ping -c 3 www.google.com
これより以下は manjaroLINUXでしたのだが EndeavourOSでも通用するはず
起動後150分でシャットダウン
# crontab -l
@reboot shutdown -h +150
------------------------------
touch /run/clamav/clamd.ctl
chown clamav.clamav /run/clamav/clamd.ctl
0 21 * * * freshclam ; clamscan --recursive --infected --move=/Virus--- /
なお
./comment-out.bat /etc/clamav/clamd.conf | sed '/^$/d' -
は
LogFile /var/log/clamav/clamd.log
LogTime yes
PidFile /run/clamav/clamd.pid ## <-------
TemporaryDirectory /tmp
LocalSocket /run/clamav/clamd.ctl
User clamav
# ./comment-out.bat ufw.bat | ./kuugyou-nokeru.bat
ufw disable
ufw enable
ufw default deny
ufw deny from 192.168.3.0/24
ufw allow Deluge
ufw limit ssh/tcp
ufw status
試論)スマホとつなぐ
yay -Sy jmtpfs simple-mtpfs
pacman -Sy gvfs-mtp libmtp
データ転送のできるコードなら(電力のみのはだめ)
楽天ミニで コードをつないで 「設定」 より
それから
次に
すると
速度
3.5インチ 機械式ハードディスクでは
# hdparm -t /dev/sda5
/dev/sda5:
Timing buffered disk reads: 260 MB in 3.01 seconds = **86.34 MB/sec**
nvmeでは
# hdparm -t /dev/nvme0n1p2
/dev/nvme0n1p2:
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
Timing buffered disk reads: 4772 MB in 3.00 seconds = **1590.63 MB/sec**
motion
# diff /etc/motion/motion.conf /etc/motion/motion.conf-ori
31c31
< target_dir /ma5/motion---
---
> ; target_dir value
./comment-out.bat /etc/motion/motion.conf | ./kuugyou.bat -
daemon off
setup_mode off
log_level 6
target_dir /ma5/motion---
videodevice /dev/video0
width 640
height 480
framerate 15
text_left CAMERA1
text_right %Y-%m-%d\n%T-%q
emulate_motion off
threshold 1500
despeckle_filter EedDl
minimum_motion_frames 1
event_gap 60
pre_capture 3
post_capture 0
picture_output off
picture_filename %Y%m%d%H%M%S-%q
movie_output on
movie_max_time 60
movie_quality 45
movie_codec mkv
movie_filename %t-%v-%Y%m%d%H%M%S
webcontrol_port 8080
webcontrol_localhost on
webcontrol_parms 0
stream_port 8081
stream_localhost on
実行は
motion
で
空行を除ける
./kuugyou-nokeru.bat kuugyou-nokeru.bat
---------
# https://ex1.m-yabe.com/archives/3692 より
# sed '/^$/d' $1
# grep -v ^$ $1
awk '$0 != ""{print $0}' $1
metube
./comment-out.bat mt-2-mp3.bat-dame
mkdir MT---
cd /home/ore/MT---
metube-dl $1
for FILE in *; do mv "$FILE" ${FILE// /_}; done
for FILE in *; do mv "$FILE" ${FILE//" "/_}; done
for x in `ls *.*m*`
do
ffmpeg -i $x $x.mp3
rm $x
done
ls -l /home/ore/MT---
A) HPの15-db0178au
wifiを認識させるのに
# dmesg | grep rtl88
[ 9.554429] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 9.560965] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
だったので
yay -Sy rtl8821ce-dkms-git