2021年5月16日 星期日

How to disable GUI on armbian (revert the Desktop to server)

  1. Check which Display manager that you're using currently
    cat /etc/X11/default-display-manager
    nodm should be default if you're choose auto login when setting by armbian-config
    but you're change it with lightdm or sddm, so check the display manager first.

  2. Disable current display manager
    if you're using nodm
    sudo systemctl disable nodm
    if you're using lightdm
    sudo systemctl disable lightdm
    if you're using sddm
    sudo systemctl disable sddm

  3. Reboot the system
    sudo reboot

  4. It's should be great now~

2021年2月17日 星期三

how do i fix an error with libc6-dev-armhf-cross in linux mint upgrade

先前升級公司用的工作機碰到這個問題
Log就不貼了,我手邊也沒有,可以參考下列連結

https://askubuntu.com/questions/1079797/how-do-i-fix-an-error-with-libc6-dev-armhf-cross-in-ubuntu-18-04-when-trying-to

不確定我是不是曾經裝過cross compiler,總之升級的時候碰到了類似的狀況
網路上能找到的方案不多,主要能參考的就是上述那一篇問答
建議是刪除重新安裝有問題的package

但實際上我重新安裝,調整順序或啥的,始終出現Package相依性錯誤

最後的解決方法是
sudo dpkg -P --force-depends <Package name>
這個方式,忽略相依性,強制移除套件

接著把libc6-dev-armhf-cross,以及相依的所有套件都移除
不建議用在一般套件上,除非不得已加上你很清楚你要移除的套件
但因為cross compiler的相依性主要以cross compiler相關為主
基本上不影響系統運作


移除乾淨後,透過下列指令修復套件的相依性
順利的話可以回到乾淨的狀態,如果有cross compiler套件沒有移除乾淨,則回到前一個步驟繼續刪

  • Clean the package cache:
    sudo apt clean
  • Update the package listing:
    sudo apt update
  • Fix broken dependencies (should automatically install two of the removed packages):
    sudo apt -f install
都完成之後就可以繼續嘗試dist-upgrade或do-release-upgrade或mint-upgrade

整理網誌~

不久前看了一些文章,提到要做自己的品牌行銷

寫網誌紀錄一些自己的紀錄也是種方法,對我來說不難
畢竟當碰到覺得值得留下紀錄的事情,我也會寫點東西留個紀錄

但我的網誌有蠻大一部份是以前紀錄心情的部份,一直留到現在
從最早的一篇,在ptt2寫下的文章,2003年的文章
這些已經不太適合放在主要的網誌上
所以花了點時間拆分成兩個網誌

原來的網誌改用另外一個domain
原來的網誌內容匯出到新申請的blogger帳號
在新申請的Blogger帳號上,隱藏掉比較私人的部份文章
舊的網誌上依舊全部公開,那些都是曾經的過去,也沒必要特別隱藏
原來的domain則修改對應到新的Blogger帳號上

2021年
希望我可以持續寫下去~

Fix msmtp does not work in old ubuntu/debian version

主要是舊版msmtp沒有處理好email header 現在的smtp伺服器會檢查mail header 寄件人跟帳號不一致不給寄 收件人不是合法mail address自然不能寄 #!/bin/bash # Workaround until mtmsp >= 1.8....