archdaemon技術筆記

@archdaemon

arch keynotes

Public team

Community (0)
No community contribution yet

Joined on Mar 17, 2023

  • convert convert -list font 列出所有的字型 convert -pointsize 56 -font 華康魏碑體 -gravity south -stroke blue -strokewidth 4 -annotate +15+15 "濟公活佛慈訓" -stroke none -fill yellow -annotate +15+15 "濟公活佛慈訓" 317678.jpg 濟公活佛慈訓.jpg firewalld 因為PG無法連線 經查詢後 得知VM上啟動了firewalld 故需要開通port 加入下列firewall-cmd --zone=public --add-port=5437/tcp 在VM上的PG資料庫 /usr/pgsql-15/bin/postgres -D /mnt/bgcdb/pg15 -p 5437 /usr/pgsql-12/bin/postgres -D /mnt/bgcdb/PG12 -p 5433
     Like  Bookmark
  • systemctl啟動 :::success (medset-py3.11) [josh@archlinux ~]$ sudo systemctl status systemd-networkd.service ○ systemd-networkd.service - Network Configuration Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; disabled; preset: enabled) Active: inactive (dead) TriggeredBy: ○ systemd-networkd.socket Docs: man:systemd-networkd.service(8) (medset-py3.11) [josh@archlinux ~]$ sudo systemctl enable systemd-networkd.service
     Like  Bookmark
  • Query選項 :::success 用法: pacman {-Q --query} [選項] [軟體包] -b, --dbpath <路徑> 指定另外的資料庫位置 -c, --changelog 查看某軟體包的更新日誌 -d, --deps 列出所有作為依賴安裝的軟體包 [過濾器] -e, --explicit 列出所有單獨指定安裝的軟體包 [過濾器] -g, --groups 查看某軟體包群組所屬的所有軟體包 -i, --info 查看軟體包資訊 (-ii 查看備份檔案) -k, --check 檢查軟體包檔案是否存在 (-kk 則查詢檔案屬性)
     Like  Bookmark
  • 開啟multilib 來安裝WINE 在設定檔/etc/pacman.conf 開啟multilib 安裝multilib/wine 安裝LINE 從M$下載LineInst.exe後 使用wine執行後 會安裝在目錄夾內 :::success wine $HOME/.wine/drive_c/users/josh/AppData/Local/LINE/bin/current/LINE.exe ::: 但是會出現空間不足的情形 這點需要去作好設定 可以使用winecfg來設定虛擬桌面
     Like  Bookmark
  • 製作新套件步驟 從維護AUR的套件連結 可以找到PKGBUILD 下載PKGBUILD 注意不是惡意的軟體malicious 或是 untrustworthy 執行makepkg -i 安裝新作出來的套件 pacman -U xxx.xz
     Like  Bookmark
  • 使用alsa架構 全名是Advanced Linux Sound Architecture (ALSA) alsa-utils vs alsa-tools :::success 使用開源版的alsa-utils 以及社群版的community/alsa-tools 其中的alsamixer 會出現device卡以及可以調整聲音大小的util ::: 使用alsamixser 可以顯示出 預設的playback 以及收音LINE-IN的device
     Like  Bookmark
  • 若是有GPU的顯式卡 可以安裝nvidia的驅動程式 詳細的描述可以看arch-xorg driver驅動程式 :::success lspci -v | grep -A1 -e VGA -e 3D #找出顯卡 pacman -Ss xf86-video #安裝xwindow generic顯卡的函式庫 安裝xf86-video-nouveau 特別為nvidia的開源版函式庫 另外nvidia 本身也有自行開發的函式庫 放在AUR內nvidia nvidia-utils nvidia-470xx-dkms nvidia-470xx-utils
     Like  Bookmark
  • 復原連線的sessions 所有連線的設定檔 是放在如下目錄夾的json格式檔 :::success $HOME/.local/share/DBeaverData/workspace6/General/.dbeaver/data-sources.json :::
     Like  Bookmark
  • inputrc設定檔 :::success $include /etc/inputrc "\C-p":history-search-backward "\C-n":history-search-forward set colored-stats On #set completion-ignore-case On set completion-prefix-display-length 3 set mark-symlinked-directories On set show-all-if-ambiguous On
     Like  Bookmark
  • 使用 xinput 進行滑鼠設定 :::success xinput list | grep -E "slave.*pointer" | grep -v XTEST | sed -e 's/^.id=//' -e 's/\s.$//' ::: 在此系統內 會找出idnum值為11 使用xinput找出滑鼠的特定ID值 xinput get-button-map {idnum} 設定滑鼠鍵盤對應的ID值 xinput set-button-map {idnum} {order} 設定/etc/xorg.conf :::success
     Like  Bookmark
  • 設定檔 設定檔可以放在$HOME/.icewm目錄夾 preferences, prefoverride 這兩個檔案 其中關於字型的大小可以有如下的設定值 :::success 視窗的字型大小叫作 titleFont 時鐘的字型大小叫作 TaskFont application的字型大小叫作NormalTaskBar MenuFontNameXft="sans-serif:size=22" ToolButtonFontNameXft="sans-serif:size=22" TitleFontNameXft="sans-serif:size=22" #ToolButtonFontNameXft="sans-serif:size=22"
     Like  Bookmark
  • mouse 調整scroll方向 在 regedit 網址列打入如下的HKEY 即可進行編輯 :::success 電腦\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\VID_17EF&PID_6019\6&1a23d845&0&0000\Device Parameters ::: 將FlipFlopWheel 的DWORD 值 從 0 改成 1
     Like  Bookmark
  • solr的configsets設定檔 Please follow below steps to create our own configsets and create a collection using these configurations for Solr Cloud mode. sudo cp -R _default/ db_config 編輯設定檔 solrconfig.xml, DIHconfigfile.xml and schema.xml(managed_schema) Create a zip file of new configurations (cd ${SOLR_INS}/configsets/db_config/conf && zip -r - *) > db_config_set.zip 將設定檔.zip 上傳至ZooKeeper :::info curl -X POST --header "Content-Type:application/octet-stream" --data-binary @db_config_set.zip "http://your_host_ip:8983/solr/admin/configs?action=UPLOAD&name=db_config_set"
     Like  Bookmark
  • keyring backend :::info ~/.local/share/pypoetry/venv/bin/python -m pip install keyrings.alt ::: CERTIFICATE_VERIFY_FAILED 使用youtube-dl會出現錯誤訊息 :::success Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)> :::
     Like  Bookmark
  • What is D-Bus? D-Bus is a system for interprocess communication (IPC). Architecturally, it has several layers: A library, libdbus, that allows two applications to connect to each other and exchange messages. A message bus daemon executable, built on libdbus, that multiple applications can connect to. The daemon can route messages from one application to zero or more other applications. Wrapper libraries or bindings based on particular application frameworks. For example, libdbus-glib and libdbus-qt. There are also bindings to languages such as Python. These wrapper libraries are the API most people should use, as they simplify the details of D-Bus programming. libdbus is intended to be a low-level backend for the higher level bindings. Much of the libdbus API is only useful for binding implementation. libdbus only supports one-to-one connections, just like a raw network socket. However, rather than sending byte streams over the connection, you send messages. Messages have a header identifying the kind of message, and a body containing a data payload. libdbus also abstracts the exact transport used (sockets vs. whatever else), and handles details such as authentication.
     Like  Bookmark
  • 簡介keyring函式庫 The Python keyring library provides an easy way to access the system keyring service from python. It can be used in any application that needs safe password storage. These recommended keyring backends are supported: 設定keyring backend :::success PYTHON_KEYRING_BACKEND="keyring.backends.null.Keyring" poetry self add poetry-dynamic-versioning-plugin PYTHON_KEYRING_BACKEND="keyring.backends.null.Keyring" poetry self add poetry-dynamic-versioning-plugin :::
     Like  Bookmark