Linux 使用 ffmpeg 將影片 90度、180度旋轉

Linux 想要將影片(Mp4、Mov...)做 90度、180度的旋轉,要怎麼做呢?

閱讀全文〈Linux 使用 ffmpeg 將影片 90度、180度旋轉〉

Linux tail 遇到 file rotate 要如何持續追蹤讀取

Linux 很常使用 tail -f /var/log/syslog 等等,要持續看 Log 進來的情況。

不過如果持續追蹤,很常遇到 file rotate 的狀況,遇到的時候,tail -f 就不會繼續更新了... 要怎麼解決這個問題呢?

閱讀全文〈Linux tail 遇到 file rotate 要如何持續追蹤讀取〉

目錄權限修改造成 Logrotate 失敗的修復步驟

Log (/var/log/apache2) 的資料夾權限變更,造成 Logrotate 的時候無法 rotation,錯誤訊息如下:

error: skipping "/var/log/apache2/access.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

要如何修正此問題呢?

註:Logrotate 的權限一定是夠,所以不是權限不夠的問題。

閱讀全文〈目錄權限修改造成 Logrotate 失敗的修復步驟〉