胡加偉

@cwhu

Joined on Dec 28, 2019

  • Intro Signal是什麼? 軟體中斷(處理非同步事件)告訴行程某特殊事件發生了 非同步事件? from 硬體存取非法記憶體位置 除以0
     Like  Bookmark
  • Environment 我是用 Proxmox 架的 VM 來編譯跟測試 kernel version: 5.4.188 cpu: xeon e5-2690 v4 (x86_64 bits) distribution: ubuntu 20.04 Tutorial 建議可以先嘗試編譯一次未修改的kernel並install成功,再來試新增system call 跟編譯 # 下載kernel
     Like 4 Bookmark
  • 軟體工程簡介 軟體危機 DEF:軟體開發的速度遠不及軟體的成長速度,因此導致開發成本的提高以及時辰的延誤 SOL:以工程化的方式引入軟體開發,以解決軟體危機 issue Unrealistic Deadline Vague(不明確) Requirements
     Like 4 Bookmark
  • Problem The CC version check failed: The kernel was built with gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12), but the current compiler version is cc(Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010. Solution 移除舊驅動 sudo apt purge nvidia*
     Like  Bookmark
  • 原本是利用Rasberry Pi 3B 當作 cups print server,但覺得效能過剩,因此想用 linkint 7688 duo 取代他。在 https://firmware-selector.openwrt.org/?version=21.02.2 可以找到適用linkint 7688 duo 的 OpenWrt版本。 跟著這篇部落格 https://blog.abysm.org/2018/12/linkit-7688-upstream-openwrt/ 的步驟做可以刷入OpenWrt,但發現此版本中的 opkg 沒有 cups package,因此要手動安裝。 參考對岸網友文章整理後: cd /tmp ## 也可在其他機器下載後 ssh 傳到 /tmp git clone https://gitee.com/ytwl333/openwrt-musl-cups/tree/master/ cd ./openwrt-musl-cups/mipsel
     Like  Bookmark
  • 前言 本來想在舊電腦上跑 mdadm 做軟RAID,但說實在只有一些基礎的功能。在 QNAP 品牌NAS上跑的軟體陣列也是用ZFS,具有可使用SSD當快取、重建速度較快等優點,因此本文將著重在記錄如何利用ZFS建立RAID。 項目 說明 Device Support HDD、SSD、NVMe RAID
     Like 2 Bookmark
  • update kernel 5.10->5.14 reboot -> found that one monitor works only check if gpu conneted lspci | grep 'VGA' check gpu driver nvidia-smi message: nvidia-smi has failed because it couldn't communicate with the nvidia driver. make sure that the latest nvidia driver is installed and running check kernel version uname -a -> 5.14 force to use nvidia gpu prime-select nvidia noticed that someone said that the driver is built for specific kernel version start to downgrade the kernel version :cry: using gui tool
     Like  Bookmark
  • https://github.com/erichu30/homebridge_DaikinAC A project using homebridge to control my Daikin air conditioner via esp8266 micro controller Start: August, 2021 Changelog 1.0 add funtion of turning AC on or off Arduino esp8266
     Like  Bookmark
  • cd /var/lib/dpkg/ sudo mv info/ info_bak # backup sudo mkdir info # create a new info directory sudo apt-get update # update sudo apt-get -f install # repair sudo mv info/* info_bak/ # Move the files created after the upper command ti directory info_bak sudo rm -rf info # delete the info directory sudo mv info_bak info # renamed directory info_bak to info
     Like  Bookmark
  • Synergy 因為學習需求,所以目前會同時使用Ubuntu及windows10系統,持有兩台主機、兩套螢幕滑鼠鍵盤,但總覺得要在兩個鍵盤滑鼠間切來切去太麻煩了,而且相當占桌面空間。後來找到Synergy這套軟體,利用網路可以共享滑鼠鍵盤與剪貼簿,且支援Windows、Linux、Mac OS。 我看別人的介紹是有固定IP的電腦擔任server的腳色,去分享鍵盤滑鼠,client端則是連上server分享出來的鍵盤滑鼠。但我目前兩台主機是用區域網路方式連線,因此以下會以此方式教學及記錄遇到的問題,但大致上應該大同小異。 目前Synergy已改為收費licence模式,但舊版本沒有licence也可正常使用。 以下是有人在改為收費前clone出來的安裝檔。 https://github.com/brahma-dev/synergy-stable-builds/releases (win10) https://packages.ubuntu.com/bionic/synergy (ubuntu)
     Like  Bookmark
  • Date 此文為在 Linux 安裝及設定 Samba,並在區域網路內 Windows 上掛載資料夾的教學。 以 Ubuntu 20.04 為例,Windows 10 為 21H1。 :::info :bulb: 提示: 此篇並未考慮周全網路安全因素,相關設定請參照他篇教學 ::: 安裝Samba
     Like  Bookmark
  • 環境 ubuntu 20.04 LTS kernel 5.12.9-051209-generic GNOME Shell 3.36.9 步驟 在目錄 /home/erichu/文件/sh
     Like  Bookmark
  • [name=CHIA WEI, HU] [time=Sun, May 30, 2021 03:10 PM] [color=#907bf7] mdadm是 Linux下的一款 RAID 管理工具。 我們可以利用 mdadm 在 Linux 系統中建立軟體RAID。 以下教學將簡單介紹如何在 Ubuntu 20.04 下建立RAID。 更詳細的教學與參數設定可以參考 鳥哥的 Linux 私房菜 ~
     Like 2 Bookmark
  • 如題,比起wifi下的區域網路,使用線路直連應該快不少,也省了router/switch的錢。 但也只適合只有2台主機的情況了。 :desktop_computer: :desktop_computer: 網路設定 Setting Windows Linux
     Like  Bookmark