發表文章

目前顯示的是 4月, 2022的文章

Install gnome-tweak to add minimize and maximize options of window

 refereces https://trendoceans.com/how-to-get-minimize-and-maximize-button-in-gnome/

Install phpMyAdmin rpm from rpm on CentOS

source https://rpmfind.net/linux/rpm2html/search.php?query=phpMyAdmin&submit=Search+...&system=&arch=  #keyword search: phpmyadmin http://rpm.pbone.net/index.php3   required php  php-common php-mysqlnd php-xml php-mbstring php-opcache php-pdo php-sodium php-process path /usr/share/phpMyAdmin /etc/phpMyAdmin  <------config.inc.php /etc/httpd/conf.d/   <---------phpMyAdmin.conf  for httpd

Upgrade php and httpd(apache) on CentOS 7

圖片
1. for latest php from https://rpms.remirepo.net/ $ wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm $ sudo  rpm -ivh remi-release-7.rpm $ sudo yum -y --enablerepo='remi-php74' --enablerepo='remi'  install php-7.4.29       2. for latest httpd from https://repo.codeit.guru/ $ wget https://repo.codeit.guru/codeit-repo-release.el7.rpm $ sudo rpm -ivh codeit-repo-release.el7.rpm $ sudo yum -y install httpd-2.4.53 3. If error message occurred on httpd-2.4.53 + php 5.4.X (Invalid command php...) modify /etc/httpd/conf.modules.d/00-mpm.conf disable mpm_event with #(sharp) and enable mpm_prefork with unsharp references https://rpms.remirepo.net/ https://repo.codeit.guru/ https://repo.codeit.guru/packages/centos/7/x86_64/  https://repo.ius.io/ https://tw.arip-photo.org/320126-error-start-apache-php-value-MDGNGZ https://www.datadoghq.com/blog/monitoring-apache-web-server-performance/#prefork-mpm #Cyber Security    

Convert MBR format system disk to GPT format

圖片
mbr2gpt.exe 1.  start -> settings -> update & security -> recovery -> advanced startup 2. choose an option -> troubleshoot -> advanced options -> command prompts 3. X:\Windows\system32\> mbr2gpt /validate 4. X:\Windows\system32\>mb2gpt /convert 5. Reboot and press Del or F10 (or F1,F2 for Laptop) to BIOS configuration to change BIOS to EFI boot mode  On VMware:   5. Have added 100MB EFI sector between C: and Recovery partition References https://www.windowscentral.com/how-convert-mbr-disk-gpt-move-bios-uefi-windows-10 https://docs.microsoft.com/zh-tw/windows/deployment/mbr-to-gpt

Exclude multiple files or folder in rsync command

 1.  rsync command for multi exclude files or folder $ rsync -arv --exclude={'course','download','tmpfile.txt'} /var/www/  /backup/www one folder $ rsync -arv --exclude 'download' /var/www/ /backup/www one file $ rsync -arv --exclude 'tmpfile.txt' /var/www/ /backup/www wildcard or patterns $ rsync -arv --exclude '*.iso' /var/www/ /backup/www -a: -rlptgoD -v: verbose -r: --recursive references https://linuxhint.com/exclude-directory-rsync/ https://phoenixnap.com/kb/rsync-exclude-files-and-directories