[app]停用Hyper-v 讓BlueStacks順利執行

參考網址:https://support.bluestacks.com/hc/zh-tw/articles/360055244412

1. 下載並執行此.exe檔案以停用 Hyper -V。

2.以管理員身份執行

bcdedit /set hypervisorlaunchtype off

3.前往控制台程式集→ 開啟或關閉Windows功能

發表於 Windows系統, 程式設計 | 發表迴響

[ubuntu]KVM

參考網址:https://www.itcoder.tech/posts/how-to-install-kvm-on-ubuntu-20-04/

最近使用VirtualBox安裝虛擬機時覺得速度實在是有夠慢,所以就試試看KVM。試用結果效率還不錯喔!
 

apt install cpu-checker
kvm-ok
要出現
INFO: /dev/kvm exists
KVM acceleration can be used

apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager

systemctl is-active libvirtd
出現active

sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER


brctl show
輸出bridge name	bridge id		      STP enabled	interfaces
virbr0		  8000.52540089db3f	yes		      virbr0-nic

创建虚拟机
圖形化界面

記得更改CPU的參數

 

發表於 Linux系統 | 發表迴響

[anydesk]lubuntu 22.04 安裝anydesk

參考網址:https://www.how2shout.com/linux/install-anydesk-on-ubuntu-22-04-lts-jammy-via-command-terminal/

wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -

echo deb http://deb.anydesk.com/ all main | sudo tee /etc/apt/sources.list.d/anydesk-stable.list

apt update

apt install anydesk

Note: If after installing AnyDesk is not running or you get an error: While loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory

wget http://ftp.us.debian.org/debian/pool/main/p/pangox-compat/libpangox-1.0-0_0.0.2-5.1_amd64.deb

apt install ./libpangox-1.0-0_0.0.2-5.1_amd64.deb

 

重新安裝(更改別名)
 

更改linux主機名稱
修改/etc/hostname

移除anydesk
apt --purge remove anydesk
刪除原本的資料
rm -rf /etc/anydesk
rm -rf /home/sa/.anydesk
rm -rf /root/.anydesk

依上半段文章重新安裝anydesk
重新命名別名

 

發表於 Linux系統 | 發表迴響

[ubuntu]試用lubuntu 22.04

網頁下載google chrome 安裝 google-chrome-stable_current_amd64.deb

apt install libgtkglext1
網頁下載安裝anydesk_6.1.1-1_amd64.deb
anydesk: error while loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory
ln -s /usr/lib/x86_64-linux-gnu/libpangoxft-1.0.so.0 /usr/lib/x86_64-linux-gnu/libpangox-1.0.so.0

Authorization required, but no authorization protocol specified
無法啟動anydesk
https://askubuntu.com/questions/1371485/anydesk-is-not-working-after-upgrading-to-21-10

 

apt install filezilla

tasksel的選項變少了,只有web server 找不到 LAMP server

改用 apt install apache2 php-mysql libapache2-mod-php mysql-server php8.1


apt install phpmyadmin

mysql mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;

發表於 Linux系統 | 發表迴響

[jp]櫻桃小九子夜鶯家族

參考網址:https://yysub.top/?f-1.html

發表於 日語 | 發表迴響

[oat]使用筆記

參考網址:
中繼機 教師機 樣本機  
中繼機的anydesk 會被自動移除:解決方法 進階功能   □開機時自動執行OAT  取消勾選 (懷疑自動執行OAT時刪除了主程式)

  ​
ASUS UEFI 錯誤訊息   BlInitializeLibrary failed 0xc0000001

2.管理者選單->A.基本管理設定 設定開機選單等待時間設為0秒時,開機時無法用上下鍵選擇不同的開機方式(如進PE環境),最少需設1秒。 

發表於 Windows系統 | 發表迴響

找回 Windows 10 消失不見「Windows 相片檢視器」

參考網址:https://sofun.tw/windows-10-photo-viewer/

regedit 懶人包

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
".tif"="PhotoViewer.FileAssoc.Tiff"
".tiff"="PhotoViewer.FileAssoc.Tiff"
@=""
".jpg"="PhotoViewer.FileAssoc.Tiff"
".jpeg"="PhotoViewer.FileAssoc.Tiff"
".png"="PhotoViewer.FileAssoc.Tiff"
".gif"="PhotoViewer.FileAssoc.Tiff"
".bmp"="PhotoViewer.FileAssoc.Tiff"
".ico"="PhotoViewer.FileAssoc.Tiff"

 

發表於 Windows系統 | 發表迴響

[php]除錯設定

<?php
//ini_set("display_errors",1);
//ini_set("error_reporting","E_ALL & ~E_NOTICE");
//error_reporting( E_ALL & ~E_NOTICE );

echo "display_errors:" . ini_get("display_errors") ."<br>";
echo "error_reporting:" .ini_get("error_reporting")."<br>";
if($i==0) {
  echo "aaa";
}

$a= "aaabbbccc";
echo $a;
?>

雖然php提供ini_set()可以暫時設定錯誤訊息出現與否,
但實作結果當php.ini display_errors 設為Off時,php中下了指令ini_set("display_errors",1);  error_reporting( E_ALL & ~E_NOTICE ); 卻無法顯示語法錯誤的訊息

最後還是把相關的設定回歸給 php.ini
display_errors = On
error_reporting = E_ALL & ~E_NOTICE

include進來的檔案不會偵錯,有錯誤時一片空白。
smarty有錯誤時也是一片空白。

發表於 程式設計 | 發表迴響

[DD-WRT]Running a DD-WRT VM in Virtualbox

參考網址:https://www.youtube.com/watch?v=BRLukj4dZxk

Full steps can be found at https://i12bretro.github.io/tutorials…

   01. Download Oracle Virtualbox https://www.virtualbox.org/
   02. Download DD-WRT x86 Image ftp://ftp.dd-wrt.com/
   03. Install Oracle Virtualbox
   04. Convert DD-WRT x86 Image to VDI
         # change directory to virtualbox installation
         cd %programfiles%\Oracle\Virtualbox
         # run vboxmanage to convert the raw image to .vdi
         vboxmanage.exe convertdd "c:\users\i12bretro\downloads\dd-wrt_public_vga.image" "c:\users\i12bretro\downloads\dd-wrt.vdi"
   05. Resize the VDI File
         # resize the vdi to 256MB
         vboxmanage.exe modifyhd –resize 256 "c:\users\i12bretro\downloads\dd-wrt.vdi"
   06. Launch Virtualbox
   07. Create a New VM by selecting Machine ≫ New
         Name: DD-WRT
         Machine Folder: C:\VMs
         Type: Linux
         Version: Other Linux (32-bit)
         Memory Size: 256 MB
         Hard disk: Do not add a virtual hard disk
   08. Click Create
   09. Copy the dd-wrt.vdi file from downloads into C:\VMs\DD-WRT
   10. Select the VM and Click Settings
   11. Select Storage
   12. Click Add Storage Attachment ≫ Add Hard Disk ≫ Choose existing disk
   13. Click Add and browse to C:\VMs\DD-WRT\dd-wrt.vdi
   14. Click OK
   15. Select Network
   16. Set Attached to: Bridge Adapter
   17. Make sure the DD-WRT VM is selected and click Start ≫ Normal
   18. Wait for the text to stop scrolling and press Enter
   19. Login with root/admin
   20. Set the IP address to something in your current subnet so you can reach it
         ifconfig br0 192.168.0.227
   21. Launch your web browser of choice and access the DD-WRT web UI with the IP address in the previous step

 

透過 VirtualBox 安裝 DD-WRT x86

DDWRT路由器安裝opkg

發表於 硬體維修, 軟體使用 | 發表迴響

[sport]sport分支

1.sport

2.relay 接力賽,含大隊接力、大跑步、跳繩接力

3.folk 民俗體育

4.kid 幼兒運動會,源自relay11104,修改成專用版本 已停用

5.dgb已停用

發表於 程式設計 | 發表迴響