最近chrome經常會彈出"請檢查你的密碼"十分煩擾人。
關閉方法;
設置>隱私權和安全性>安全性>標準防護>當密碼因資料侵害事件遭到外洩時發出警告
關閉此選項即可。
*** 請注意,本文只是為了記錄 PN532 使用方法***
工具
1. PN532 + PL2303
2.卡號小於 514 的UU卡
3. cuid 白卡
軟體
1. Mifareone tool (M1T)
2.WinHEX3. NFC上位機 <== 不用上位機了
步驟
1. 接上 PN532(win 10 直接插上就好,不要用附上的驅動,會破解失敗)並運行 M1T
2. 按"檢測連接",確認PN532有正確連接
3. 放上UU卡,並按"掃描卡片",記錄卡片的UID
4. 到"高級操作模式" > "手動CLI"
5. 輸入以下(讀取時間約為 30 ~ 120 分鐘)
start mfcuk.exe -C -R 1:A -s 100 -S 80 -v 3 -o key.dump
-s -S 值 0 ~ 255 皆可,若上面的讀不到,再自行改變一下。
6. 會得到一個 key.dump,用 winHEX 打開會看到紅框處的12碼即為密碼systemctl status ServiceName sudo systemctl stop ServiceName sudo systemctl start ServiceName sudo systemctl restart ServiceName sudo systemctl reload ServiceName sudo systemctl enable ServiceName sudo systemctl disable ServiceName systemctl is-enabled ServiceName systemctl is-active ServiceName systemctl show ServiceName sudo systemctl mask ServiceName sudo systemctl unmask ServiceName
chown root:root /usr/bin/rclone chmod 755 /usr/bin/rclone mkdir -p /usr/local/share/man/man1把 rclone.1 copy 到 /usr/local/share/man/man1/
cp rclone.1 /usr/local/share/man/man1/ mandb2. 執行 rclone config,設定 google drive 相關設定
mkdir /home/gd
nano /etc/systemd/system/rclone-gd.service [Unit] Description=rclone-gd After=network.target [Service] Type=simple ExecStart=/usr/bin/rclone mount gd:/ /home/gd --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 ExecStop=/bin/fusermount -qzu /home/gd Restart=always RestartSec=10 [Install] WantedBy=multi-user.target
mkdir /home/cam
nano /etc/systemd/system/rclone-cam.service [Unit] Description=rclone-cam After=network.target [Service] Type=simple ExecStart=/usr/bin/rclone mount cam:/ /home/cam --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 ExecStop=/bin/fusermount -qzu /home/cam Restart=always RestartSec=10 [Install] WantedBy=multi-user.target變更權限
chmod 644 /etc/systemd/system/rclone-gd.service chmod 644 /etc/systemd/system/rclone-cam.service重新載入 systemd
systemctl daemon-reload啟動 rclone 掛載
systemctl start rclone-gd systemctl start rclone-cam
設定開機時啟動 rclone systemctl enable rclone-gd systemctl enable rclone-cam2. 手動掛載
apt-get install screen掛載的命令格式如下:
screen -S rclone-gd; #新建一個會話 rclone mount gd:/ /home/gd --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 Ctrl+A+D #退出會話
screen -S rclone-cam #新建一個會話 rclone mount cam:/ /home/cam --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 Ctrl+A+D #退出會話
screen -S rclone-media #新建一個會話 rclone mount media:/ /home/media --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 Ctrl+A+D& #退出會話停止掛載
screen -ls
screen -r rclone-gd #恢复會話 screen -r rclone-cam #恢复會話 fusermount -qzu /home/gd #停止掛載 fusermount -qzu /home/cam
proxmox unable to open file '/etc/pve/firewall/201.fw.tmp.2099' - Permission denied (500)解決方式
pvecm expected 1然後都重開機, 若碰到無法連入的就打
pve firewall stop完工, 查狀態
pvecm status參考資料
sudo apt install isc-dhcp-server修改 DHCP 設定檔
default-lease-time 3600; max-lease-time 28800; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.121 192.168.1.220; option subnet-mask 255.255.255.0; option routers 192.168.1.254; }重啟 DHCP SERVER
sudo systemctl restart isc-dhcp-server isc-dhcp-server6檢查是否有啟動成功
sudo systemctl status isc-dhcp-server isc-dhcp-server6
sudo netstat -tulnp | grep dhcp
nano /etc/ssh/sshd_config修改以下內容
PermitRootLogin yes再來安裝 corosync-qnetd
apt install -y corosync-qnetd接著在 PVE1 和 PVE2 上安裝 corosync-qdevice
apt install -y corosync-qdevicePVE1 及 PVE2 都裝好之後,找一台下指令
pvecm qdevice setup 192.168.1.30執行後會發現跳出錯誤
... .. . INFO: start and enable corosync qdevice daemon on node 'pve1'... Synchronizing state of corosync-qdevice.service with SysV service script with /l ib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable corosync-qdevice update-rc.d: error: corosync-qdevice Default-Start contains no runlevels, aborti ng. command 'ssh -o 'BatchMode=yes' -lroot 192.168.1.90 systemctl enable corosync-qd evice' failed: exit code 1查了許久,原來是bug!!
### BEGIN INIT INFO # Provides: corosync-qdevice # Required-Start: $remote_fs $syslog corosync # Required-Stop: $remote_fs $syslog corosync # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Corosync Qdevice daemon # Description: Starts and stops Corosync Qdevice daemon. ### END INIT INFO然後分別在 PVE1 及 PVE2 上執行
update-rc.d -f corosync-qdevice remove update-rc.d -f corosync-qdevice defaults重新載入 corosync-qdevice,
systemctl enable corosync-qdevice.service然後查詢狀態
pvecm status看到有三台 vote,就設定完成
Cluster information ------------------- Name: LAB Config Version: 3 Transport: knet Secure auth: on Quorum information ------------------ Date: Sun Feb 2 01:38:55 2020 Quorum provider: corosync_votequorum Nodes: 2 Node ID: 0x00000001 Ring ID: 1.150 Quorate: Yes Votequorum information ---------------------- Expected votes: 3 Highest expected: 3 Total votes: 3 Quorum: 2 Flags: Quorate Qdevice Membership information ---------------------- Nodeid Votes Qdevice Name 0x00000001 1 A,V,NMW 192.168.1.90 (local) 0x00000002 1 NR 192.168.1.20 0x00000000 1 Qdevice