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」就可以跳過這個錯誤啦...


2019年8月11日

Mint 19.2 下的 playonlinux/wine 版本問題

從 Mint 18.2 升級到 Mint 19.2 時, playonlinux 中的舊 win 程式出了問題,不能執行。
查了網,試了後多方法,判斷可能是少了這個: wine32-development

sudo apt install wine32-development

安裝後一開始還是不行,後來把 Wine 版本,從原來的 1.7.34 換成「System」,竟然就 OK 啦!!



2019年8月9日

Mint/ubuntu/linux 下的記憶體測試memtest86:memtester

更換PC記憶體之後,跑記憶體測試 memtest86 或 memtest86+ 有些人應該是有經驗的。一直很好奇 linux 下的指令模式是否有類似的工具。爬了一下文,發現還是有的:memtester。see https://linuxhint.com/check-ram-ubuntu/

在 Mint 18.x 下,下指令即可安裝

$ sudo apt install memtester

使用方法是下指令

$ sudo memtester 1G 2

1G 是指要測試的記憶體大小
2 是指要重覆測試的次數

可以先用指令
free -h

來看可用來測試的記憶體有多大,例如

~$ free -h
              total        used        free      shared  buff/cache   available
Mem:            11G        1.8G        319M        100M        9.4G        9.3G
置換:        4.0G          0B        4.0G


像上面的結果,我有 9.3G 可以用來測試,所以可以分配個 8G 來測試看看,下指令:

$ sudo memtester 8G 2

然後你就可以繼續工作,不用像 memtest86 那樣乾等,而不能使用電腦啦...

測試結果長這樣


2019年8月8日

Mint 18.x xfce 下,用同一螢幕,切換主機 xorg 掛掉

我使用兩台電腦,在Mint 18.x 下,共用同一螢幕,切換主機 xorg 掛掉,回不去。
此時,先按 ctrl+alt+F1 切到 tty1 指令模式,然後下指令關掉 mint 18.2 xfce 的桌面管理程式 lightdm:

sudo service lightdm stop

再重新啟動即可

sudo service lightdm start

注意,別的系統,要查桌面管理程式,下指令:

$ cat /etc/X11/default-display-manager

/usr/sbin/lightdm

表示這 mint 18.x 用的桌面管理是 lightdm


Ubuntu/Mint 指令查 DRAM 的運作資訊:dmidecode

Win 下有不錯的 cpu-z 工具,但 linux 好像沒那麼好用的軟體。改用指令

$ sudo dmidecode -t memory

可以得到以下的顯示結果:
最大支援到 16 GB,下例裝有 4支,每支各2GB,頻率是 1333Mhz
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.5 present.

Handle 0x0033, DMI type 16, 15 bytes
Physical Memory Array
 Location: System Board Or Motherboard
 Use: System Memory
 Error Correction Type: None
 Maximum Capacity: 16 GB
 Error Information Handle: Not Provided
 Number Of Devices: 4

Handle 0x0035, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x0033
 Error Information Handle: Not Provided
 Total Width: 64 bits
 Data Width: 64 bits
 Size: 2048 MB
 Form Factor: DIMM
 Set: None
 Locator: DIMM0
 Bank Locator: BANK0
 Type: Other
 Type Detail: Synchronous
 Speed: 1333 MHz
 Manufacturer: Manufacturer0
 Serial Number: SerNum0
 Asset Tag: AssetTagNum0
 Part Number: PartNum0

Handle 0x0037, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x0033
 Error Information Handle: Not Provided
 Total Width: 64 bits
 Data Width: 64 bits
 Size: 2048 MB
 Form Factor: DIMM
 Set: None
 Locator: DIMM1
 Bank Locator: BANK1
 Type: Other
 Type Detail: Synchronous
 Speed: 1333 MHz
 Manufacturer: Manufacturer1
 Serial Number: SerNum1
 Asset Tag: AssetTagNum1
 Part Number: PartNum1

Handle 0x0039, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x0033
 Error Information Handle: Not Provided
 Total Width: 64 bits
 Data Width: 64 bits
 Size: 2048 MB
 Form Factor: DIMM
 Set: None
 Locator: DIMM2
 Bank Locator: BANK2
 Type: Other
 Type Detail: Synchronous
 Speed: 1333 MHz
 Manufacturer: Manufacturer2
 Serial Number: SerNum2
 Asset Tag: AssetTagNum2
 Part Number: PartNum2

Handle 0x003B, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x0033
 Error Information Handle: Not Provided
 Total Width: 64 bits
 Data Width: 64 bits
 Size: 2048 MB
 Form Factor: DIMM
 Set: None
 Locator: DIMM3
 Bank Locator: BANK3
 Type: Other
 Type Detail: Synchronous
 Speed: 1333 MHz
 Manufacturer: Manufacturer3
 Serial Number: SerNum3
 Asset Tag: AssetTagNum3
 Part Number: PartNum3

解決 fcitx 輸入中文時,不顯示候選字框的方法

在mint 18.2 下,fcitx 輸入中文時,不顯示候選字框的原因,可能是多安裝了一個模組 :fcitx-module-kimpanel。解決辦法是移除它。用指令


$
sudo apt remove fcitx-module-kimpanel


2019年8月2日

memtest86+ 5.01 的 test #7 block move 電腦死當...

買了一組4G DDR3 1600CL, 在 memtest86+ 5.01 測試中, 按 [F2] 使用了多執行緒模式 (SMP mode) 的 test # block move 一直出現電腦死當的情況,而且換上舊有的 2G DDR 1600 (用了很多年, 很少出現異常情形), 讓我起疑是否 memtest86+ 在 SMP mode 下是否仍是實驗性的功能...

經過爬文, 發現似乎網路也有別人遇到此情況: https://forum.canardpc.com/threads/84663-Memtest86-is-freezing-while-running-test-7

之後, 進 memtest86+ 5.01 測試, 就不再出現死機或其它奇怪的錯誤了, 害我以為 DDR ram 有問題, 多花了好幾天的冤枉時間... 謹記供他人參考