發表文章

目前顯示的是 1月, 2020的文章

Login as single user mode on CentOS 8

圖片
1. boot on GRUB Menu 2. add argument  rd.break behind as follow: Linux .... rhgb quit  rd.break 3. press Ctrl+x   for booting 4. mount sysroot as follow mount -o remount,rw /sysroot chroot /sysroot 5. check identification as follow bin/sh# whoami 6. If you want to modify root password /bin/sh# passwd if you want to fix sudo suid problem(error message: sudo : /usr/bin/ sudo must be owned by uid 0 and have the setuid bit set) , you can use instruction as follow /bin/sh# chmod u+s /usr/bin/sudo 7. Important!!!   #relabel SELinux protected files /bin/sh# touch / .autorelabel 8. Rebooting machine /bin/sh# reboot -f Reference https://www.linuxtechi.com/boot-centos-8-rhel-8-single-user-mode/ https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-boot-into-single-user-mode-in-rhel-8.html

Google Chrome 預設使用無痕模式

1. 對著google chrome icon 按右鍵 -> 內容 -> 目標 最後面加上 --Incognito ,目標指令有" "就加在指令後面 2.cmd.exe -> regedit.exe -> F3 搜尋 chrome.exe,將執行 chrome.exe的機碼皆改為 chrome.exe --Incognito Reference https://www.webnots.com/how-to-open-chrome-in-incognito-mode-by-default/ https://www.howtogeek.com/137466/how-to-always-start-any-browser-in-private-browsing-mode/

SONY DV file processing

1. Download SONY PMB(Play Memory Home) via https://support.d-imaging.sony.co.jp/www/disoft/int/download/playmemories-home/win/zh-Hant/ and install SONY PMB 2. Plug in SONY DV to your PC/NB by USB cable, the PMB software will check SONY DV is on line or not 3. Convert .MTS file to MP4 format 4.  Merge MP4 Clips to one file for full-length film 5. Edit or cut the full-length .MP4  to what you like to show 

Wordpress 上傳照片出現 http 錯誤(http error)

一般WordPress上傳圖片時,在WP第5版會出現將像素限制在2500以下(2500 x2500 pixels),比第4版出現http錯誤還更多指引。程式碼則可以發現限制在 2560 pixels 以內。 除了考慮資料夾權限寫入之外,再參考以下資料 參考資料 https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-http-image-upload-error-in-wordpress/

AMD Ryzen在Windows 10環境用Virtualbox啟動VM出現AMD-V is not available(VERR_SVM_NO_SVM)

圖片
1. 在BIOS內開啟 SVM 2. 在舊版控制台->程式集->程式和功能->左方開啟或關閉Windows功能->移除 Windows Hyper-V(下圖) 3. 搜尋->cmd.exe ->使用管理員權限開啟 ->輸入以下     bcdedit /set hypervisorlaunchtype off 4. 開啟virtualbox -> 設定 -> 系統 -> 處理器 勾選啟用 Nested VT-x/AMD-V 參考 https://superuser.com/questions/1374694/amd-v-is-not-available-verr-svm-no-svm