Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

標籤: Ubuntu

netplan “gateway4” has been deprecated

Posted on 2022 年 8 月 6 日2022 年 8 月 6 日 By 日落 在〈netplan “gateway4” has been deprecated〉中尚無留言

gateway4 已經不在使用,新的設定是使用 routes :

routes:
  - to: default
    via: 10.10.10.1

舊版的 netplan 設定檔,更新以後會變成:

network:
    ethernets:
        ens33:
            addresses: [192.168.0.10/24]
            nameservers: 
                addresses: [8.8.8.8, 1.1.1.1]
            dhcp4: false
            routes:
              - to: default
                via: 192.168.0.1
    version: 2

其他請參考 netplan 範例。

Tags:Linux, Ubuntu

Ubuntu 22.04 package repository 已包含新的套件

Posted on 2022 年 4 月 25 日2022 年 4 月 25 日 By 日落 在〈Ubuntu 22.04 package repository 已包含新的套件〉中尚無留言

開了一台虛擬機器,看看 22.04 的變化,發現 package repository 已包含部份近年新開發的終端機工具。

我參考 newish command line tools 的列表,搜尋了一些套件,發現以下幾個工具已經被收進 default packages:

  • duf
  • fd (fd-find)
  • btop
  • plocate
  • pgcli
  • tldr

這樣應該是不用整理太多 PPA 來安裝套件了。

Tags:Linux, Ubuntu

Ubuntu 22.04 released

Posted on 2022 年 4 月 22 日2022 年 4 月 22 日 By 日落 在〈Ubuntu 22.04 released〉中尚無留言

Ubuntu 20.04 (臺灣時間) 今日開放下載。

除了 Ubuntu 以外,其他已 Ubuntu 為主的分支,也陸續開放下載:

  • Kubuntu
  • Lubuntu
  • Xubintu
  • UbuntuMate
  • UbuntuStudio

Tags:Linux, Ubuntu

Ubuntu 20.04 Failed to Change Password while Using cloud-init

Posted on 2022 年 1 月 22 日2022 年 2 月 22 日 By 日落 在〈Ubuntu 20.04 Failed to Change Password while Using cloud-init〉中尚無留言

Cloud-Init should allow you to modify password after first time login. But if SSH closed while changing password:

WARNING: Your password has expired.
You must change your password now and login again!
Changing password for ubuntu.
Current password:
passwd: Authentication token manipulation error
passwd: password unchanged
Connection to 192.168.0.102 closed.

There might be Cloud-Init issue in older version.

There is a workaround to by-pass force passwd. Find /boot/firmware/user-data in the boot partition, then you will see options:

# On first boot, set the (default) ubuntu user's password to "ubuntu" and
# expire user passwords
chpasswd:
  expire: true
  list:
  - ubuntu:ubuntu

Update expire to false if you do not want to change password in first login. Or create your own username/password in list if expire is not work.

Please notice that device is not safe using default user name and password. Change it after you connect to the device.

Tags:Linux, Raspberry Pi, Ubuntu

修改 Fcitx 中文字匡的文字大小 (font size)

Posted on 2021 年 5 月 9 日2021 年 5 月 10 日 By 日落 在〈修改 Fcitx 中文字匡的文字大小 (font size)〉中有 1 則留言

螢幕的解析度越來越高,在相同大小的螢幕上文字相對看起來較小,對長時間看螢幕工作的眼睛有點吃不消,決定對工作環境動手腳。

先說一下我的工作環境:

  • Ubuntu 20.04 LTS
  • 輸入法界面是 Fcitx + Chewing (新酷音)

原本應該是調整 Fcitx 就可以調整文字輸入匡上的設定,但調整以後重新開機就會恢復原樣,所以手癢直接來改家目錄的設定檔。

設定檔的位置是 ~/.config/fcitx-qimpanel/skin/ubuntu-milk/fcitx_skin.conf:

[SkinFont]
....
CandFontSize=22
....
FontSize=22

存檔後重新啟動 Fcitx (或是登出再登入也可以),接下來輸入匡的文字大小就會更新成你的設定。

2021/05/10 更新:上述方法在重新開機以後,設定會被蓋掉,導致文字大小又恢復原樣。以下新的方法需要修改 /usr/share 的檔案,但是修改後永久有效。

先缺換目錄到 /usr/share/fcitx/skin,這邊會列出幾個 skin 樣式,這邊範例使用 default 這個 skin。修改 default 目錄中的 fcitx_skin.conf 檔:

[SkinFont]
FontSize=13
MenuFontSize=14

把上面這二個值改掉即可。

接下來透過 fcitx 的 UI 界面來選取要使用的 skin 設定檔,範例中修改的是 default,所以這邊的 skin 就選取 default:

圖一:選取 fcitx 欲使用的 skin 設定檔,

重新登入、重新開機,就可以套用新的設定了。

Tags:Fcitx, Ubuntu

文章分頁

上一頁 1 2 3 4 ... 10 下一頁

其他

關於我  (About me)

小額贊助

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.