- use rufus create usb win os
- use this usb to start and into fix your computer
- open cmd mode, start fix
- diskpart
- list disk
- select disk 0 (target disk)
- list volume
- select volume 4 (target area, FAT32)
- assign letter Z
- exit
- rd /s /q “Z:\EFI\”
- bootrec /fixboot
- bcdboot “C:\Windows” /l zh-tw /s Z: /f UEFI
- reboot and start your os on hdd
- if happen access is denied, keep in cmd mode
- format Z: /FS:FAT32 /y
- bcdboot "C:\Windows" /s Z: /f UEFI /l zh-tw
- reboot and start your os on hdd
show code js
2023年2月9日 星期四
BCD rebuild 0xc000000e
2023年2月3日 星期五
fail2ban for xrdp
jail.conf
[rdp]
enabled = true
filter = rdp
action = iptables-multiport[name=rdp, port="3389", protocol=tcp]
logpath = /var/log/xrdp.log
maxretry = 5
filter.d/rdp.conf
[Definition]
failregex = connection received from <HOST>
ignoreregex =
datepattern = %%Y%%m%%d-%%H:%%M:%%S
link: https://stackoverflow.com/questions/65491510/regexp-for-fail2ban-for-xrdp-log
jail.local
[rdp]
enabled = true
port = rdp
filter = rdp
logpath = /var/log/xrdp.log
maxretry = 5
findtime = 1d
bantime = 1d
2023年2月2日 星期四
centos steam iredmail
del pem to create new
amavisd -c /etc/amavisd/amavisd.conf genrsa /var/lib/dkim/domain.com.pem 1024
chown amavis:amavis /var/lib/dkim/domain.com.pem
chmod 0400 /var/lib/dkim/domain.com.pem
amavisd -c /etc/amavisd/amavisd.conf showkeys
amavisd -c /etc/amavisd/amavisd.conf testkeys
centos 8 to steam
sudo dnf update
sudo dnf in centos-release-stream
sudo dnf repolist
sudo dnf distro-sync
cat /etc/centos-release
reboot
dnf yum update
link: https://www.cyberciti.biz/howto/upgrade-migrate-from-centos-8-to-centos-stream-conversion/
centos rdp
for centos 8
sudo dnf groupinstall "Server with GUI"
sudo dnf install epel-release
sudo dnf install xrdp
sudo systemctl enable xrdp --now
sudo systemctl status xrdp
sudo firewall-cmd --add-port=3389/tcp --permanent
sudo firewall-cmd --reload
Change Port: /etc/xrpd/xrdp.ini and restat service
link: https://www.myfreax.com/how-to-install-xrdp-on-centos-8/
Centos not support for update/upgrade
INFO: Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Run:
- sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
- sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
- link: https://www.cnblogs.com/axinno1/p/15884647.html
- sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
- sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
- link: https://www.tecmint.com/error-failed-to-download-metadata-for-repo-appstream/