Ubuntu 22.04 Docker出現問題

今天在更新22.04之後出現了Docker問題:

cgroups: cgroup mountpoint does not exist: unknown.

$ docker run hello-world
Unable to find image ‘hello-world:latest’ locally
latest: Pulling from library/hello-world
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.
ERRO[0005] error waiting for container: context canceled

解決方法:

  • mkdir /sys/fs/cgroup/systemd
  • mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

EPSON使用的PROT

Service nameProtocol typeLocal/Remote port numberControls these operations
ENPCUDP3289/Any portSearching for a product from applications such as printer or scanner drivers, or EpsonNet Config
SNMPUDP161/Any portAcquiring and configuring MIB from applications such as printer or scanner drivers, or EpsonNet Config
LPRTCP515/Any portForwarding LPR data
RAW (Port9100)TCP9100/any portForwarding RAW data
IPP/IPPSTCP631/Any portForwarding AirPrint data (IPP/IPPS printing)
WSDTCPAny port/5357Controlling WSD
WS-DiscoveryUDP3702/Any portSearching for a product from WSD
Network ScanTCP1865/Any portForwarding scan data from Document Capture Pro and Document Capture
Network Push ScanTCPAny port/2968Acquiring job information on push scanning from Document Capture Pro and Document Capture
Network Push Scan DiscoveryUDP2968/Any portSearching for a computer during push scanning from Document Capture Pro and Document Capture
FTP Data (Local)TCP20/Any portForwarding FTP printing data to FTP server
FTP Control (Local)TCP21/Any portControlling FTP printing to FTP server
FTP Data (Remote)TCPAny port/20Forwarding scan data and received fax data to FTP client; controls only an FTP server that uses remote port 20
FTP Control (Remote)TCPAny port/21Forwarding scan data and received fax data to FTP client
CIFS (Local)*TCP445/Any portSharing a network folder on CIFS server
CIFS (Remote)*TCPAny port/445Forwarding scan data and received fax data to a folder on CIFS server
HTTP (Local)TCP80/Any portForwarding Web Config and WSD data to a HTTP or HTTPS server
HTTPS (Local)TCP443/Any port
HTTP (Remote)TCPAny port/80Communicating with Epson Connect or Chromebook Native Printing, firmware update, and root certificate update on a HTTP or HTTPS client
HTTPS (Remote)TCPAny port/443

iPhone 11觸控問題蘋果推出維修服務

iPhone 11螢幕問題蘋果推出維修服務。

iPhone 11 觸控問題顯示器模組更換方案

Apple 已確定有少部分的 iPhone 11 螢幕因為顯示器模組的問題,可能造成螢幕無法回應觸控動作。受影響的裝置是在 2019 年 11 月到 2020 年 5 月之間製造。

如果您的 iPhone 11 出現此問題,請使用下方的序號檢查工具,查看您的裝置是否符合本方案的資格。若符合資格,Apple 或 Apple 授權維修中心將免費提供維修服務。

https://support.apple.com/zh-tw/iphone-11-display-module-replacement-program

2020/12/02英文時事朗讀

New Zealand joins Australia in denouncing China’s tweet
分析師說,金正恩從中國接受了19種實驗性COVID-19疫苗

New Zealand joins Australia in denouncing China’s tweet
新西蘭與澳大利亞一起譴責中國的推文

Israeli Tourism Ministry Warns Against Discussing Sensitive Topics With UAE Citizens
以色列旅遊部警告不要與阿聯酋公民討論敏感話題

Indian farmers march on Delhi in protest against agriculture laws
印度農民遊行到德里抗議農業法律

Paris police officers under investigation after video of beating spurs outrage
毆打馬刺暴行的視頻後,巴黎警察正在接受調查

World’s Largest Vaccine Maker Denies Trial Volunteer’s Illness Claims
世界上最大的疫苗生產商否認審判志願者的疾病索賠

One killed and twenty injured in Nantou County bus crash
南投縣公車禍1人死亡20人受傷

A ‘Beaver Full Moon’ With Lunar Eclipse Happened This Morning And Folks Took Some Stunning Photos
今天早晨發生了帶有月食的“海狸滿月”,人們拍了一些驚人的照片

Mars’ underground brine could be a good source of oxygen
火星的地下鹽水可能是氧氣的良好來源

China’s Chang’e- five probe prepares to land on moon
中國的長征五號探測器準備登陸月球

2020年尾巴終於Microsoft Edge在Linux上可用了

Edge for Linux支援Ubuntu,Debian,Fedora和openSUSE發行版。 開發人員可以從Microsoft Edge Insider站點(下載和安裝)或Microsoft的Linux軟體存下載空間(命令行安裝)安裝Edge。

例如,開發人員可以使用以下命令在Ubuntu上安裝Edge for Linux:

curl https://packages.microsoft.com/keys/microsoft.asc | gpg –dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c ‘echo “deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main” > /etc/apt/sources.list.d/microsoft-edge-dev.list’
sudo rm microsoft.gpg
sudo apt update
sudo apt install microsoft-edge-dev

在樹苺派上安裝Bluepy抓取小米溫度計2的值 (草謞還沒整理好)

前言

install Bluepy ubuntu 20.04 with mijia temperature sensor 2 Step by step

安裝藍牙元件~

/boot/firmware/syscfg.txt

enable_uart=1
dtparam=audio=on
dtparam=i2c_arm=on
dtparam=spi=on
cmdline=cmdline.txt
#include no
include btcfg.txt

install bluetooth from ubuntu

sudo apt install pi-bluetooth

install bluepy libs

sudo apt-get install python-pip libglib2.0-dev

install pip3 by pip

sudo pip3 install bluepy

Find device From hcitools

sudo hcitool lescan –duplicate

Find LYWSD03MMC

安裝小米溫度計2代的Python 取值元件

在這裡下載到 Python For 二代:
https://github.com/JsBergbau/MiTemperature2

然後執行:

就可以抓到溫度了

Python 清除requirements.txt版本

因為經常會因為python的版本問題,造成安裝錯誤
所以有一個方式就是移除requirements.txt的版本。

在VIM中取代第一欄位置。

%s/(.)==(.)/\1/g

然後就可以下

pip install requirements.txt

service avahi-daemon stop 關閉avahi

Apple printer 使用的工具,網路名稱的工具。
有時候Airprint 會使用到他。

如果沒有用到應該可以直接關掉


#/etc/init.d/avahi-daemon stop or service avahi-daemon  stop

#chkconfig avahi-daemon off