# lspci |egrep 'VGA|3D'
看看是否有 VGA、3D controller
如有的話,代表本顯卡有 Bumblebee 功能(通常是有M的型號)。
# apt remove --purge nvidia* libnvidia* bumblebee* primus* -y
# nano /etc/modprobe.d/blacklist.conf
blacklist nouveau
加完後先重新啟動電腦
# reboot
deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free
deb http://deb.debian.org/debian/ buster-backports main contrib non-free
deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free
http://deb.debian.org/debian/ 可換成所用的鏡像站
# dpkg --add-architecture i386
# apt update && apt upgrade -y
# apt install nvidia-detect
執行 # nvidia-detect
安裝系統推薦的套件,例如: nvidia-legacy-xxx-driver
# apt install nvidia-legacy-xxx-driver
# apt install bumblebee-nvidia primus primus-libs:i386 mesa-utils -y
wget https://sourceforge.net/projects/virtualgl/files/2.6.3/virtualgl_2.6.3_amd64.deb -P /tmp/
# dpkg -i /tmp/virtualgl_*.deb
如果有錯誤訊息
# apt -f install
# ln -s /opt/VirtualGL/bin/glxspheres64 /usr/local/bin/
# adduser $USER bumblebee
執行 optirun (要開啟的程式)
例如:要使用 render,需要用到顯卡功能
optirun render
cat /proc/acpi/bbswitch
如果是 OFF ,代表 bumblebee 顯卡未啟動。
則是 ON,代表bumblebee 顯卡已啟動。
# optirun -b none nvidia-settings -c :8
流程 建model, 自訂 migration 才能讓 raw data import 到 model database。 建立 model Manager() import model ,建立 view call manager 的 function,再 return response。 Model CASCADE: 刪除 model 時,會跟著關聯的model一起刪除 related_name: 在 foreign key 設定 related_name 可以讓 models 使用, User.objects.get(id=1).purchaehistory.all() 為什麼 DateTimefield 設定 blank=True, null=True?
Sep 18, 2021申請 heroku 帳號 安裝 git 建立 requirement.txt 建立 Procfile 設定檔 建立 production_settings.py 部署 heroku 參考文件 申請 heroku 帳號及下載 heroku 到 https://www.heroku.com/ 註冊
Sep 14, 2021wpa_supplicant wpa_supplicant 可以用在 Linux 、 BSD、 MAC OS X、 Windows、 嵌入式系統..等的無線網路連線。 開發環境 Linux Release: Debian Buster 64 bits Kernal Version: 4.19.0-12-amd64 Step1 檢查 wifi 網卡有無啟用 $ sudo dmesg |grep -i wifi
Aug 26, 2021讀不到GRUB 開機時,BIOS 有偵測到硬碟,但是 GRUB 無法執行,所以判定是 GRUB 有問題。 解決方法 用 Live usb 開機 Clonezilla UEFI 開機 用 Live Debian 開機,修改GRUB 做好 Live Debian USB 後,先在 BIOS 設定 UEFI 開機,再插入 USB。
Aug 23, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up