Ubuntu 22.04 LTS (Jammy Jellyfish) Released [論壇 - Ubuntu安裝問題]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 (2) 3 4 »


回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
延續「#10」提到的,

昨天我測試的結果,在我的環境「GNOME Shell」,

在「Ubuntu-Wayland」,無法正常使用「gcin」和「hime

在「Ubuntu-Xorg」,則是可以正常「輸入中文」,

不過我只簡單測試,沒有全面去測大多的應用程式。

================================================================================

而「ibus」和「fcitx」在「Ubuntu-Wayland」和「Ubuntu-Xorg」,都是可以正常「輸入中文」,

唯一注意到的,是在「Overview」的畫面的「應用程式查詢輸入框」,

使用「fcitx」無法正常「輸入中文」

使用「ibus」則是可以正常「輸入中文」

================================================================================

後記: 請參考「#12」。

額外一提,目前我還沒有研究出,在「GDM」怎麼設定,可以在畫面選不同「Session」,

目前只有研究到可以修改「/var/lib/AccountsService/users/$(id -un)」這個檔案

可以執行下面指令,觀察這個檔案的內容


sudo cat /var/lib/AccountsService/users/$(id -un)




## 相關路徑

* /usr/share/xsessions/
* /usr/share/wayland-sessions/
* /etc/gdm3/greeter.dconf-defaults


================================================================================

所以我就先改安裝「lightdm」,讓我可以在畫面上(Top Panel),直接選擇不同的「Session」登入。

================================================================================

以上提供參考,

報告完畢


2022/5/6 16:09
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
延續「#11」提到的,

剛在看「另一篇討論」,

裡面的回覆有提到一個「文件」。

我就又再去測試「GDM」。

發現到一個我之前沒注意到的,

原來是在「輸入密碼」的那個階段,才會在「右下角」出現一個「圖示」,可以選擇不同的「Session」。

================================================================================


## 相關檔案

* /etc/gdm3/custom.conf
* /usr/share/gdm/gdm.schemas

## 相關連結

* https://wiki.archlinux.org/title/GDM#Use_Xorg_backend
* https://docs.fedoraproject.org/en-US/quick-docs/configuring-xorg-as-default-gnome-session/

================================================================================

以上提供參考

報告完畢


2022/5/15 0:22
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員二級
註冊日期:
2015/3/28 21:29
所屬群組:
已註冊使用者
等級: 8
HP : 0 / 189
MP : 30 / 4531
EXP: 57
離線
Ubuntu22.04 的使用門檻似乎提高了很多

例如:

1.安裝方法多了一道手序。

2.內裝的fcitx5, 我還不知如何安裝新酷音之外的輸入法,
只能解除再重裝fcitx4。

3.wine也是一大難題,下載了老半天,卻無法安裝完整、使用。

4.kde-plasma 的很多功能在22.04都變陽春了,
安裝時選sddm也沒用,
相比之下,20.04,真是最佳版本。

2022/5/24 20:21
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
Newman 寫到:
Ubuntu22.04 的使用門檻似乎提高了很多

例如:

2.內裝的fcitx5, 我還不知如何安裝新酷音之外的輸入法,
只能解除再重裝fcitx4。




我目前也只使用到「fcitx5-chewing」,我其實也不是很了解那些「Package」是那個輸入法,

所以剛剛簡單的產生下面的列表,可供參考,用來輔助討論。

方便的話,您也可以具體的提出要安裝那種輸入法,這樣才有具體的方向來討論。


執行下面指令,產生「BBCode


apt-cache search fcitx5 | sort | awk -F ' - ' '{print "* [url=https://packages.ubuntu.com/jammy/"$1"]"$1"[/url]"}'




* fcitx5-anthy
* fcitx5-chewing
* fcitx5-chinese-addons-bin
* fcitx5-chinese-addons
* fcitx5-chinese-addons-data
* fcitx5-config-qt
* fcitx5-data
* fcitx5-frontend-gtk2
* fcitx5-frontend-gtk3
* fcitx5-frontend-gtk4
* fcitx5-frontend-qt5
* fcitx5-hangul
* fcitx5-keyman
* fcitx5-kkc
* fcitx5-libthai
* fcitx5-m17n
* fcitx5-material-color
* fcitx5-module-chttrans
* fcitx5-module-cloudpinyin-dev
* fcitx5-module-cloudpinyin
* fcitx5-module-emoji
* fcitx5-module-fullwidth
* fcitx5-module-lua-common
* fcitx5-module-lua-dev
* fcitx5-module-lua
* fcitx5-module-pinyinhelper-dev
* fcitx5-module-pinyinhelper
* fcitx5-module-punctuation-dev
* fcitx5-module-punctuation
* fcitx5-module-quickphrase
* fcitx5-modules-dev
* fcitx5-modules
* fcitx5-module-wayland
* fcitx5-module-xorg
* fcitx5-mozc
* fcitx5
* fcitx5-pinyin
* fcitx5-rime
* fcitx5-sayura
* fcitx5-skk
* fcitx5-table-amharic
* fcitx5-table-arabic
* fcitx5-table-cns11643
* fcitx5-table-compose
* fcitx5-table-emoji
* fcitx5-table
* fcitx5-table-ipa-x-sampa
* fcitx5-table-latex
* fcitx5-table-malayalam-phonetic
* fcitx5-table-other
* fcitx5-table-rustrad
* fcitx5-table-tamil-remington
* fcitx5-table-thai
* fcitx5-table-translit
* fcitx5-table-translit-ua
* fcitx5-table-viqr
* fcitx5-table-yawerty
* fcitx5-unikey
* gir1.2-fcitxg-1.0
* kde-config-fcitx5
* libfcitx5config6
* libfcitx5config-dev
* libfcitx5core7
* libfcitx5core-dev
* libfcitx5gclient2
* libfcitx5gclient-dev
* libfcitx5-qt1
* libfcitx5-qt-data
* libfcitx5-qt-dev
* libfcitx5utils2
* libfcitx5utils-dev
* libime-bin
* libimecore0
* libimecore-dev
* libime-data
* libime-data-language-model
* libimepinyin0
* libimepinyin-dev
* libimetable0
* libimetable-dev


執行


apt-cache search fcitx5 | sort



顯示


fcitx5-anthy - Fcitx5 wrapper for Anthy IM engine
fcitx5-chewing - Chewing input method support for fcitx5
fcitx5-chinese-addons-bin - Chinese-related addon for fcitx5 (binary tools)
fcitx5-chinese-addons - Chinese-related addon for fcitx5 (metapackage)
fcitx5-chinese-addons-data - Chinese-related addon for fcitx5 (shared data files)
fcitx5-config-qt - configuration tool for Fcitx5 (Qt version)
fcitx5-data - Fcitx Input Method Framework v5 (common data files)
fcitx5-frontend-gtk2 - GTK2 IM Module for fcitx5
fcitx5-frontend-gtk3 - GTK3 IM Module for fcitx5
fcitx5-frontend-gtk4 - GTK4 IM Module for fcitx5
fcitx5-frontend-qt5 - IM module for fcitx5
fcitx5-hangul - Hangul input method wrapper for fcitx5
fcitx5-keyman - Fcitx5 wrapper for Keyman keyboarding platform
fcitx5-kkc - Fcitx5 wrapper for libkkc IM engine
fcitx5-libthai - Thai input method engine for Fcitx5 based on LibThai
fcitx5-m17n - m17n support module for Fcitx5 Input Method Framework
fcitx5-material-color - UI theme for fcitx5 following Material Design
fcitx5-module-chttrans - Fcitx Input Method Framework v5 (chttrans module)
fcitx5-module-cloudpinyin-dev - Development files for fcitx5 cloudpinyin module
fcitx5-module-cloudpinyin - Fcitx Input Method Framework v5 (cloudpinyin module)
fcitx5-module-emoji - Fcitx Input Method Framework v5 (emoji module)
fcitx5-module-fullwidth - Fcitx Input Method Framework v5 (fullwidth module)
fcitx5-module-lua-common - Lua support for fcitx5 (common files)
fcitx5-module-lua-dev - Lua support for fcitx5 (development files)
fcitx5-module-lua - Lua support for fcitx5
fcitx5-module-pinyinhelper-dev - Development files for fcitx5 pinyinhelper module
fcitx5-module-pinyinhelper - Fcitx Input Method Framework v5 (pinyinhelper module)
fcitx5-module-punctuation-dev - Development files for fcitx5 punctuation module
fcitx5-module-punctuation - Fcitx Input Method Framework v5 (punctuation module)
fcitx5-module-quickphrase - Fcitx Input Method Framework v5 (quickphrase module)
fcitx5-modules-dev - Fcitx Input Method Framework v5 (input modules dev files)
fcitx5-modules - Fcitx Input Method Framework v5 (core modules)
fcitx5-module-wayland - Fcitx Input Method Framework v5 (wayland modules)
fcitx5-module-xorg - Fcitx Input Method Framework v5 (xorg modules)
fcitx5-mozc - Mozc engine for fcitx5 - Client of the Mozc input method
fcitx5 - Next generation of Fcitx Input Method Framework
fcitx5-pinyin - Fcitx Input Method Framework v5 (builtin pinyin support)
fcitx5-rime - Rime input method support for fcitx5
fcitx5-sayura - Fcitx5 wrapper for Sayura IM engine
fcitx5-skk - Japanese SKK input engine for Fcitx5
fcitx5-table-amharic - Flexible Input Method Framework v5 - Amharic table
fcitx5-table-arabic - Flexible Input Method Framework v5 - Arabic table
fcitx5-table-cns11643 - Flexible Input Method Framework v5 - Cns11643 table
fcitx5-table-compose - Flexible Input Method Framework v5 - Compose table
fcitx5-table-emoji - Flexible Input Method Framework v5 - Emoji table
fcitx5-table - Fcitx Input Method Framework v5 (builtin table support)
fcitx5-table-ipa-x-sampa - Flexible Input Method Framework v5 - IPA-X-SAMPA table
fcitx5-table-latex - Flexible Input Method Framework v5 - LaTeX table
fcitx5-table-malayalam-phonetic - Flexible Input Method Framework v5 - Malayalam phonetic table
fcitx5-table-other - Additional table based input method for Fcitx 5
fcitx5-table-rustrad - Flexible Input Method Framework v5 - Rustrad table
fcitx5-table-tamil-remington - Flexible Input Method Framework v5 - Tamil Remington table
fcitx5-table-thai - Flexible Input Method Framework v5 - Thai table
fcitx5-table-translit - Flexible Input Method Framework v5 - Translit table
fcitx5-table-translit-ua - Flexible Input Method Framework v5 - Ukrainian Translit table
fcitx5-table-viqr - Flexible Input Method Framework v5 - Viqr table
fcitx5-table-yawerty - Flexible Input Method Framework v5 - Yawerty table
fcitx5-unikey - Vietnamese Input Method Engine for Fcitx5 using Unikey Engine
gir1.2-fcitxg-1.0 - GObject introspection data for fcitx5
kde-config-fcitx5 - KDE configuration module for Fcitx5
libfcitx5config6 - Fcitx Input Method Framework v5 (config library)
libfcitx5config-dev - Fcitx Input Method Framework v5 (config library dev files)
libfcitx5core7 - Fcitx Input Method Framework v5 (core library)
libfcitx5core-dev - Fcitx Input Method Framework v5 (core library dev files)
libfcitx5gclient2 - GLib-based D-Bus client library for fcitx5 (library)
libfcitx5gclient-dev - GLib-based D-Bus client library for fcitx5 (development files)
libfcitx5-qt1 - Qt library and IM module for fcitx5
libfcitx5-qt-data - Qt library and IM module for fcitx5 (data files)
libfcitx5-qt-dev - Qt library and IM module for fcitx5 (development files)
libfcitx5utils2 - Fcitx Input Method Framework v5 (utils library)
libfcitx5utils-dev - Fcitx Input Method Framework v5 (utils library dev files)
libime-bin - Generic Input Method Implementation (tools)
libimecore0 - Generic Input Method Implementation (core library)
libimecore-dev - Generic Input Method Implementation (core dev files)
libime-data - Generic Input Method Implementation library (data files)
libime-data-language-model - Generic Input Method Implementation library (language model)
libimepinyin0 - Generic Input Method Implementation (pinyin library)
libimepinyin-dev - Generic Input Method Implementation (pinyin dev files)
libimetable0 - Generic Input Method Implementation (table library)
libimetable-dev - Generic Input Method Implementation (table dev files)


2022/5/24 21:48
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員二級
註冊日期:
2015/3/28 21:29
所屬群組:
已註冊使用者
等級: 8
HP : 0 / 189
MP : 30 / 4531
EXP: 57
離線


方便的話,您也可以具體的提出要安裝那種輸入法,這樣才有具體的方向來討論。




謝謝您

比如:嘸蝦米 或 倉頡

2022/5/24 22:41
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
Newman 寫到:
samwhelp 寫到:

方便的話,您也可以具體的提出要安裝那種輸入法,這樣才有具體的方向來討論。



謝謝您

比如:嘸蝦米 或 倉頡



有找到「解法」了,

已經寫了一個專案放在「GitHub」上。

我的方式有些許不同,但概念上是一致的,

先簡單說明,

就是下載「Arch Package」,然後解開,

接著採用簡單的方式打包成「Debian Package」,

最後安裝「Debian Package」

要注意的是需要安裝「fcitx5-chinese-addons」才會有效。

太晚了,先睡了

先提供參考



================================================================================

後記: 請參考

* 「#18」- 如何編譯「fcitx5-table-extra」並且簡易打包成「Debian Package」
* 「#19」- 如何編譯「fcitx5-table-extra」並且打包成「Debian Package」和「Debian Source Package」
* 「#20」- 如何編譯「fcitx5-table-extra」並且打包成多個「Debian Package」

================================================================================

* GitHub / fcitx5-table-extra
* Arch Package / fcitx5-table-extra / Download From Mirror / PKGBUILD
* Fcitx Wiki / Compile from source

================================================================================

後記 (2023-03-31)

* Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用) / 回覆 #40 / 如何 Compile 「boshiamy.txt

================================================================================

2022/5/25 3:28
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
另一個進階的打包方式,已經寫好範例腳本了

放在另一個「專案」裡

以上提供參考


2022/5/25 17:41
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
================================================================================

# 如何編譯「fcitx5-table-extra」並且簡易打包成「Debian Package」

延續「#13」,「#15

================================================================================

## 前置作業

執行下面指令,安裝編譯過程會需要用到的「Package」


sudo apt-get install git build-essential cmake extra-cmake-modules libboost-dev libimecore-dev libimetable-dev libfcitx5core-dev libfcitx5utils-dev



* git
* build-essential
* cmake
* extra-cmake-modules
* libboost-dev
* libimecore-dev
* libimetable-dev
* libfcitx5core-dev
* libfcitx5utils-dev


## 下載「Source Code」

執行下面指令,clone「fcitx5-table-extra」。



git clone https://github.com/fcitx/fcitx5-table-extra.git




這時候就會下載到「fcitx5-table-extra」這個資料夾

除了使用「clone」的方式,也可以直接下載「zip」檔,請參考另一個「討論串 - #2回覆 的說明」。


另一個方式,是參考「Arch Package / fcitx5-table-extra / PKGBUILD

可以找到「https://download.fcitx-im.org/fcitx5/fcitx5-table-extra/」這個網址,這裡也可以下載。

================================================================================

## 如何編譯

參考「Arch Package / fcitx5-table-extra / PKGBUILD」,

和「GitHub / fcitx5-table-extra / README


執行下面指令,切換到「fcitx5-table-extra」這個資料夾。


cd fcitx5-table-extra



執行下面指令,產生「build」這個資料夾,並且切換到「build」這個資料夾。


mkdir build

cd build



接著執行下面指令,就會在目前「build」這個資料夾,產生相對應編譯所需的檔案。


cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ..



若有上面的「前置作業」,基本上應該會成功。

若是出現一些紅色字的提示訊息,

您可以執行「apt-cache search 關鍵字」,來找到缺少的「Package」。

接著執行下面指令,進行編譯作業


make



編譯成功後,執行下面指令,就會安裝到系統上了


sudo make install



若要移除,則是執行下面指令


sudo make uninstall





請參考「範例: build_from_github_source」。

================================================================================

若是不想直接安裝到系統上,

執行下面指令,可以安裝到「fcitx5-table-extra」這個資料夾裡


make DESTDIR="$(pwd)/fcitx5-table-extra" install



接著就可以用簡易打包的方式,打包成一個「Debian Package」,

以下是操作步驟

執行下面指令,產生「fcitx5-table-extra/DEBIAN」這個資料夾。


mkdir -p fcitx5-table-extra/DEBIAN



執行下面指令,產生「fcitx5-table-extra/DEBIAN/control」這個檔案。


cat > "fcitx5-table-extra/DEBIAN/control" << EOF
Package: fcitx5-table-extra
Version: 0.1.0
Architecture: all
Description: This is a personal package which build from arch package.
Maintainer: developer <developer@home.work>

EOF



關於「fcitx5-table-extra/DEBIAN/control」這個檔案的內容如下


Package: fcitx5-table-extra
Version: 0.1.0
Architecture: all
Description: This is a personal package which build from arch package.
Maintainer: developer <developer@home.work>



* man 5 deb-control
* man 5 deb


接下來就可以進行打包了,

執行下面指令,進行打包作業


dpkg -b fcitx5-table-extra



或是也可以執行下面指令,進行打包作業


dpkg-deb -b fcitx5-table-extra



顯示


dpkg-deb: building package 'fcitx5-table-extra' in 'fcitx5-table-extra.deb'.



* man 1 dpkg
* man 1 dpkg-deb

請參考「範例: build_deb_from_github_source」。

這個範例,是透過「dpkg-deb」來產生「Debian Package」,

另外也可以透過「ar」來產生「Debian Package」,請參考我「之前的筆記範例」。

================================================================================

接著可以執行下面指令,來觀看「fcitx5-table-extra.deb」的相關資訊。


dpkg -I fcitx5-table-extra.deb



顯示


new Debian package, version 2.0.
size 31308716 bytes: control archive=235 bytes.
177 bytes, 6 lines control
Package: fcitx5-table-extra
Version: 0.1.0
Architecture: all
Description: This is a personal package which build from arch package.
Maintainer: developer <developer@home.work>



執行下面指令


dpkg -f fcitx5-table-extra.deb



顯示


Package: fcitx5-table-extra
Version: 0.1.0
Architecture: all
Description: This is a personal package which build from arch package.
Maintainer: developer <developer@home.work>



執行下面指令


dpkg -c fcitx5-table-extra.deb | less



會顯示一個檔案列表,行數很多,就不貼上來了。

================================================================================

## 如何安裝

執行下面指令,將剛剛打包好的「fcitx5-table-extra.deb」,安裝到系統上


sudo dpkg -i fcitx5-table-extra.deb



要注意的是,要讓「fcitx5-table-extra」裡面的輸入法,可以有效運,

必須要安裝「fcitx5-chinese-addons」。

我剛剛打包,為了方便,並沒有加上「相依的欄位 Depends:」。

所以請自行事先安裝


sudo apt-get install fcitx5-chinese-addons




================================================================================

安裝好後,可以執行下面指令,觀看安裝與否


dpkg -l fcitx5-table-extra



顯示


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-============-============-=========================================================
ii fcitx5-table-extra 0.1.0 all This is a personal package which build from arch package.



執行下面指令,觀看「Package: fcitx5-table-extra」安裝那些檔案到系統上


dpkg -L fcitx5-table-extra



顯示


/.
/usr
/usr/share
/usr/share/fcitx5
/usr/share/fcitx5/inputmethod
/usr/share/fcitx5/inputmethod/array30-large.conf
/usr/share/fcitx5/inputmethod/array30.conf
/usr/share/fcitx5/inputmethod/boshiamy.conf
/usr/share/fcitx5/inputmethod/cangjie-large.conf
/usr/share/fcitx5/inputmethod/cangjie3.conf
/usr/share/fcitx5/inputmethod/cangjie5.conf
/usr/share/fcitx5/inputmethod/cantonese.conf
/usr/share/fcitx5/inputmethod/cantonhk.conf
/usr/share/fcitx5/inputmethod/easy-large.conf
/usr/share/fcitx5/inputmethod/jyutping-table.conf
/usr/share/fcitx5/inputmethod/quick-classic.conf
/usr/share/fcitx5/inputmethod/quick3.conf
/usr/share/fcitx5/inputmethod/quick5.conf
/usr/share/fcitx5/inputmethod/scj6.conf
/usr/share/fcitx5/inputmethod/stroke5.conf
/usr/share/fcitx5/inputmethod/t9.conf
/usr/share/fcitx5/inputmethod/wu.conf
/usr/share/fcitx5/inputmethod/wubi-large.conf
/usr/share/fcitx5/inputmethod/wubi98-pinyin.conf
/usr/share/fcitx5/inputmethod/wubi98-single.conf
/usr/share/fcitx5/inputmethod/wubi98.conf
/usr/share/fcitx5/inputmethod/zhengma-large.conf
/usr/share/fcitx5/inputmethod/zhengma-pinyin.conf
/usr/share/fcitx5/inputmethod/zhengma.conf
/usr/share/fcitx5/table
/usr/share/fcitx5/table/array30-large.main.dict
/usr/share/fcitx5/table/array30.main.dict
/usr/share/fcitx5/table/boshiamy.main.dict
/usr/share/fcitx5/table/cangjie-large.main.dict
/usr/share/fcitx5/table/cangjie3.main.dict
/usr/share/fcitx5/table/cangjie5.main.dict
/usr/share/fcitx5/table/cantonese.main.dict
/usr/share/fcitx5/table/cantonhk.main.dict
/usr/share/fcitx5/table/easy-large.main.dict
/usr/share/fcitx5/table/jyutping-table.main.dict
/usr/share/fcitx5/table/quick-classic.main.dict
/usr/share/fcitx5/table/quick3.main.dict
/usr/share/fcitx5/table/quick5.main.dict
/usr/share/fcitx5/table/scj6.main.dict
/usr/share/fcitx5/table/stroke5.main.dict
/usr/share/fcitx5/table/t9.main.dict
/usr/share/fcitx5/table/wu.main.dict
/usr/share/fcitx5/table/wubi-large.main.dict
/usr/share/fcitx5/table/wubi98-pinyin.main.dict
/usr/share/fcitx5/table/wubi98-single.main.dict
/usr/share/fcitx5/table/wubi98.main.dict
/usr/share/fcitx5/table/zhengma-large.main.dict
/usr/share/fcitx5/table/zhengma-pinyin.main.dict
/usr/share/fcitx5/table/zhengma.main.dict
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-cantonese.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-cantonhk.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-jyutping-table.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-quick-classic.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-quick3.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-quick5.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-scj6.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-stroke5.png
/usr/share/icons/hicolor/48x48/apps/org.fcitx.Fcitx5.fcitx-wu.png
/usr/share/icons/hicolor/64x64
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-array30-large.png
/usr/share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-array30.png
/usr/share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-boshiamy.png
/usr/share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-easy-large.png
/usr/share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-t9.png
/usr/share/icons/hicolor/64x64/apps/org.fcitx.Fcitx5.fcitx-zhengma.png
/usr/share/metainfo
/usr/share/metainfo/org.fcitx.Fcitx5.Addon.TableExtra.metainfo.xml
/usr/share/icons/hicolor/48x48/apps/fcitx-cantonese.png
/usr/share/icons/hicolor/48x48/apps/fcitx-cantonhk.png
/usr/share/icons/hicolor/48x48/apps/fcitx-jyutping-table.png
/usr/share/icons/hicolor/48x48/apps/fcitx-quick-classic.png
/usr/share/icons/hicolor/48x48/apps/fcitx-quick3.png
/usr/share/icons/hicolor/48x48/apps/fcitx-quick5.png
/usr/share/icons/hicolor/48x48/apps/fcitx-scj6.png
/usr/share/icons/hicolor/48x48/apps/fcitx-stroke5.png
/usr/share/icons/hicolor/48x48/apps/fcitx-wu.png
/usr/share/icons/hicolor/64x64/apps/fcitx-array30-large.png
/usr/share/icons/hicolor/64x64/apps/fcitx-array30.png
/usr/share/icons/hicolor/64x64/apps/fcitx-boshiamy.png
/usr/share/icons/hicolor/64x64/apps/fcitx-easy-large.png
/usr/share/icons/hicolor/64x64/apps/fcitx-t9.png
/usr/share/icons/hicolor/64x64/apps/fcitx-zhengma.png



================================================================================

## 如何移除

執行下面指令,就可以移除「Package: fcitx5-table-extra」


sudo dpkg -r fcitx5-table-extra



一樣可以執行下面指令,確認安裝與否


dpkg -l fcitx5-table-extra



顯示


dpkg-query: no packages found matching fcitx5-table-extra



================================================================================

額外一提,

上面簡易打包的方式,是因為要自用,

主要訴求是能透過dpkg來執行「安裝」,「移除」。

若要進階的打包,

也可以參考「Source Package: fcitx5-table-other」的打包方式。

執行下面指令,下載「Source Package: fcitx5-table-other」。


apt-get source fcitx5-table-other



可以觀看「debian」那個資料夾。

* man 5 deb-src-control

要注意的是要執行「apt-get source」,需要有一些前置作業,請參考另一個「討論串 - #24回覆 的說明」。


或是也可以參考「fcitx-table-extra

* Source Package: fcitx-table-extra
* https://salsa.debian.org/input-method-team/fcitx-table-extra / debian


================================================================================

以上提供參考


2022/5/26 12:40
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
================================================================================

# 如何編譯「fcitx5-table-extra」並且打包成「Debian Package」和「Debian Source Package」

================================================================================

延續上一個回覆,

在「#18」提到的作法,是先編譯出要打包的檔案,然後再簡易打包。

下面則是提供另一個作法。

================================================================================

## 前置作業

執行下面指令,安裝編譯過程會需要用到的「Package」


sudo apt-get install git wget build-essential dpkg-dev devscripts debhelper cmake extra-cmake-modules libboost-dev libimecore-dev libimetable-dev libfcitx5core-dev libfcitx5utils-dev



================================================================================

## 下載「Source Code」

執行下面指令,clone「fcitx5-table-extra」。



git clone https://github.com/fcitx/fcitx5-table-extra.git



這時候就會下載到「fcitx5-table-extra」這個資料夾

================================================================================

## 放置「debian」source control

接著下載我放在「GitHub」上的「debian」資料夾,

把整個資料夾連同檔案,放置到「fcitx5-table-extra」這個資料夾裡

也就是「fcitx5-table-extra/debian」。

================================================================================

## 編譯和打包

接著只要進到「fcitx5-table-extra」這個資料夾,

執行下面指令,就會直接「編譯」並且打包出「Debian Package」和「Debian Source Package


debuild -i -us -uc



打包好產出的檔案,會放在「fcitx5-table-extra」這個資料夾的上層。

執行


ls -1 ../



顯示


fcitx5-table-extra
fcitx5-table-extra_0.1.0_all.deb
fcitx5-table-extra_0.1.0_amd64.build
fcitx5-table-extra_0.1.0_amd64.buildinfo
fcitx5-table-extra_0.1.0_amd64.changes
fcitx5-table-extra_0.1.0.dsc
fcitx5-table-extra_0.1.0.tar.xz




* man 1 debuild        <-- 這個最下方有「EXAMPLES」說明
* man 1 dpkg-buildpackage
* man 5 deb-src-control


> 由於「debuild」會呼叫「dpkg-buildpackage」,所以「-us」,「-uc」等參數,要閱讀「dpkg-buildpackage」。

================================================================================

上面的操作步驟,已經寫好另一個範例「build_deb_from_github_source_by_way3」,放在「GitHub」上。

================================================================================

執行下面指令,就會直接「編譯」並且打包出「Debian Package


debuild -i -us -uc -b



編譯好後,執行


ls -1 ../



顯示


fcitx5-table-extra
fcitx5-table-extra_0.1.0_all.deb
fcitx5-table-extra_0.1.0_amd64.build
fcitx5-table-extra_0.1.0_amd64.buildinfo
fcitx5-table-extra_0.1.0_amd64.changes



================================================================================

執行下面指令,就會直接「編譯」並且打包出「Debian Source Package


debuild -i -us -uc -S



編譯好後,執行


ls -1 ../



顯示


fcitx5-table-extra
fcitx5-table-extra_0.1.0.dsc
fcitx5-table-extra_0.1.0_source.build
fcitx5-table-extra_0.1.0_source.buildinfo
fcitx5-table-extra_0.1.0_source.changes
fcitx5-table-extra_0.1.0.tar.xz



================================================================================

待續...

2022/5/28 7:36
應用擴展 工具箱
回覆: Ubuntu 22.04 LTS (Jammy Jellyfish) Released
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29310
EXP: 6
離線
================================================================================

# 如何編譯「fcitx5-table-extra」並且打包成多個「Debian Package」

================================================================================

延續上一個回覆,

在「#19」提到的作法,是打包成一個「Debian Package」。

下面則是打包成多個「Debian Package」。

================================================================================

一樣是要需要「#19」提到的「## 前置作業」和「## 下載 Source Code」,

然後把我另一個範例裡的「debian」資料夾,

連同檔案,放置到「fcitx5-table-extra」這個資料夾裡,

接著進到「fcitx5-table-extra」這個資料夾,

一樣執行「debuild -i -us -uc」,就會打包出

執行


ls -1 ../



顯示


fcitx5-table-boshiamy_0.1.0_all.deb
fcitx5-table-cangjie5_0.1.0_all.deb
fcitx5-table-extra
fcitx5-table-extra_0.1.0_all.deb
fcitx5-table-extra_0.1.0_amd64.build
fcitx5-table-extra_0.1.0_amd64.buildinfo
fcitx5-table-extra_0.1.0_amd64.changes
fcitx5-table-extra_0.1.0.dsc
fcitx5-table-extra_0.1.0.tar.xz



================================================================================

要注意的是,

我這個範例的「debian/control」並沒有寫的很嚴謹,只是舉例,

所以請參考

* Source Package: fcitx5-table-other / debian
* Source Package: fcitx-table-extra / debian

並對照閱讀「$ man 5 deb-src-control」裡面的欄位說明。

然後開始做實驗,實際去修改,編譯,觀看結果。

================================================================================

* Debian Wiki / Packaging / SourcePackage
* Debian Wiki / Packaging / BinaryPackage
* Debian Wiki / Packaging

================================================================================

以上提供一個探索的起點

報告完畢


2022/5/28 7:44
應用擴展 工具箱

« 1 (2) 3 4 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.