2019年10月13日

Mint xfce 工具列/視窗按鈕 的設定

Mint xfce 工具列/視窗按鈕,會顯示已開始的 app 視窗,xfce 預設是無法調整順序,即不能拉來拉去,按自己需求排序。
要變更設定,滑鼠按「開始鈕」右鍵,選 [面板]→[面板偏好設定]→[視窗按鈕],如下圖:

可以自定選項。例如 [排序] 改成 [無,允許拖放],即可按自己的順序,拖拉己開啟的 app 來排序。


2019年9月4日

RaspBian Desktop 樹莓派桌面中文化


想讓女兒試用 RaspBian Desktop 樹莓派系統,但中文化一直有些小問題,解決方法記錄如下。


先更新系統
sudo apt update
一定要安裝的中文輸入架構,我慣用 fcitx
sudo apt install fcitx fcitx-ui-classic fcitx-config-gtk
安裝倉頡三、倉頡五、新酷音(就是注意輸入法)
sudo apt install fcitx-table-cangjie3
$ sudo apt install fcitx-table-cangjie5
$ sudo apt install fcitx-chewing

新增 ll 指令
$ alias ll='ls -alh'

安裝開源字形:教育部標準楷書、cwTex圓體
$ sudo apt-get install fonts-moe-standard-kai fonts-cwtex-yen
改變桌面大小
$ lxrandr
$ http://ppa.launchpad.net/nemh/systemback/ubuntu/pool/main/s/systemback/
安裝系統備份 systemback
    http://ppa.launchpad.net/nemh/systemback/ubuntu/pool/main/s/systemback/

Chromium 中文選單
預裝版本:Version 73.0.3683.75 (Developer Build) built on Debian 9.8, running on Debian 9.8 (32-bit)

下載位置:http://mirrordirector.raspbian.org/raspbian/pool/main/c/chromium/


下載這個檔: chromium-l10n_73.0.3683.75-1_deb9u1_all.deb

LibreOffice 中文化
預裝版本:5.2.7.2



開啟「偏好設定-->Add/Remove Software 」,在蒐尋欄中,填入[Libreoffice],找到「...Chinese Tranditional Language Pack」這個,勾選來安裝,重開 LibreOffice 之後,就 OK 啦!

2019年8月31日

synaptic 在 mint19.x 的快速索引視窗不見了

參見:http://ubuntuhandbook.org/index.php/2019/01/enable-quick-filter-search-box-synaptic-package-manager/

赫然發珼,synaptic 在 mint19.x 的「快速過濾」蒐尋視窗 (Quick filter)不見 了!!!原因是apt-xapian-index 套件被新版的 ubuntu 移除了,重新用指令裝回來即可:

sudo apt install apt-xapian-index

裝完記得更新一下 index
sudo update-apt-xapian-index -vf

重開 sybnaptic 就回來了!

Mint 19.x 的 iso 檔開機,touchPad 不會動?

來源:https://forums.linuxmint.com/viewtopic.php?f=49&t=177632&p=919748&hilit=touchpad+not+recognised#p919748

若你的舊筆電,試用新的 linux disto,觸控 touchPad 不會動時,或許可以試試修改 grub 開機時的指令檔。

不同的 grub 和不同的載入情況可能會有若干差異。像我是用 grub 來載入 iso 檔試用各種作業系統。所以可能修改的是在

/etc/default/grub


/root/grub

或在開機畫面輸按「e」鍵,暫時編輯

若有這行

GRUB_CMDLINE_LINUX=""


改成
GRUB_CMDLINE_LINUX="i8042.noloop"


i8042 是 x86 鍵盤/滑鼠 控制器. 'i8042.noloop' 意指停止 AUX 設備在開機時 loopback 介面的找尋。

2019年8月20日

2019年8月17日

Mint 18.2 開機太慢的可能問題

用 systemd-analyze blame 指令可以查看開機過程,每個程序花的時間 (see https://ubuntuforums.org/showthread.php?t=2391219):

$ systemd-analyze blame
         11.459s apt-daily.service
          3.242s accounts-daemon.service
          2.958s networking.service
          2.761s gpu-manager.service
          2.658s NetworkManager.service
          2.253s apparmor.service
          2.224s dev-sda2.device
          2.204s plymouth-quit-wait.service
          2.198s lightdm.service
          1.853s thermald.service
          1.637s loadcpufreq.service
          1.376s virtualbox.service
          1.236s rsyslog.service
          1.190s upower.service
          1.186s console-kit-log-system-start.service
          1.166s grub-common.service
          1.084s lm-sensors.service
           992ms avahi-daemon.service
           986ms systemd-fsck ....

例如,以上花費時間的排名最多的是 apt-daily.service ,但這是什麼? 從指令名稱表面上來看,就是 debian 系統慣用的軟體安裝和更新 apt 之每日 daily check。這似乎不應該是開機時必要的程序,見 https://ubuntu-mate.community/t/shorten-boot-time-apt-daily-service/12297

下這個指令 sudo systemctl edit apt-daily.timer,貼上以下內容,產生一個文檔 apt-daily timer configuration :

[Timer]
OnBootSec=15min
OnUnitActiveSec=1d
AccuracySec=1h
RandomizedDelaySec=30min





最後按 ^O 寫入、再按^X離開。即完成設定。

重新開機看看囉...

另,若是像 NetworkManager-wait-online.service, 可以試著用「disable」指令把它取消:
sudo systemctl disable NetworkManager-wait-online.service

2019年8月16日

Mint 18.3 下使用 Systemback 還原 liveCD 鋘誤

Systemback (ppa 下載安裝見:https://www.linuxbabe.com/ubuntu/install-systemback-ubuntu-18-04-bionic-18-10) 是從 rematersys  演變出來的 linux 系統備份程式。它最有趣的功能就是備份完的系統,可以將之轉換成可開機的 iso (大小在 4.7 G 以下),拿到別的 PC 機器,直接開機就可以回到你原來備份時灌好的系統。


但在 Mint 18.3 下使用 Systemback, 還原時竟然發現錯誤訊息:

BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)
Enter help for a list of built-in commands.
(initramfs) /cow format specified as aufs and no support found

查了 google,好像是 casper 版本不相容 ( https://bugs.launchpad.net/systemback/+bug/1602683)。
但我試了其中最簡單的方法,就是按「Ctrl+D」就可以跳過這個錯誤啦...