2018年3月17日 星期六

How to chromecast movies on KODI player in android systems to TV

Install KODI app and LocalCast for Chromecat app.

Download the PlayerFactoryCore.xml  to the android system cellphone.

Copy this file to the directory
org.xbmc.kodi > files > .kodi > userdata

Launch KODI and play the movie,  the Localcast app will start.  Choose the chromecast/DLNA player (renderer).

Then, the movie can be stream to the TV.


ref.
http://kodiforandroid.com/how-to-stream-kodi-on-the-android-to-chromecast/

2018年2月22日 星期四

用 apt-mark 指定不要更新的套件

在舊筆電上用 Ubuntu,遇到更新 kernel 後,反而顯示異常。
還好開機時 grub 選單仍可以選擇前一版的 kernel,正常開機後,
 可以刪除後來安裝的 kernel

首先先找出新的版本名稱:

dpkg -l | grep linux-image
 
再用 apt purge 的功能,移除新的 kernel 
 
sudo apt-get purge linux-image-4.4.0-64-generic

sudo apt-get purge linux-headers-4.4.0-64-generic
 
為了避免未來用 apt upgrade 時又更新,可以用 apr-mark hold 來保存現有 kernel,

sudo apt-mark hold linux-image-4.3.0-28-generic
 
sudo apt-get purge linux-headers-4.3.0-28-generic 

這樣以後更新時,就不會更新 kernel 了。


2018年2月20日 星期二

在 Ubuntu 下用 pyrenamer 更改整批檔案的檔名

在上傳音樂檔案時 ,遇到系統不允許檔名中有特殊符號,如冒號,等等。
此時可以用 pyrenamer 這個小程式,整批自動修改檔名。

可參考:

https://www.howtoinstall.co/en/ubuntu/xenial/pyrenamer