Browser Graphics Are Broken

Since an Ubuntu update on 2023-05-24, graphics seem to be broken on Chrome and Microsoft Edge browsers. Method 1 A workaround is to remove the GPUCache folder in .config Google Chrome rm -rf ~/.config/google-chrome/Default/GPUCache Microsoft Edge rm -rf ~/.config/microsoft-edge/Default/GPUCache Method 2 If the browser still act weirdly, just remove all configuration and caches in the local. You will need to start from fresh, make sure you keep or sync bookmarks...

May 25, 2023 · 1 min · oopsmonk

Fcitx5 倉頡輸入法 on Ubuntu 22.04

Fcitx5的繁體倉頡是在fcitx5-table-extra裡, 但被沒有打包成debain package無法直接使用apt安裝. 我們要自己編譯並安裝在系統上, 首先安裝必要的packages及fcitx5 $ sudo apt-get install fcitx5 fcitx5-chinese-addons git build-essential \ cmake extra-cmake-modules libboost-dev libimecore-dev libimetable-dev \ libfcitx5core-dev libfcitx5utils-dev 編譯及安裝fcitx5-table-extra $ git clone https://github.com/fcitx/fcitx5-table-extra.git $ cd fcitx5-table-extra && mkdir build && cd build $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .. $ make -j8 && sudo make install 重啟fcitx5就可以看到一些倉頡輸入法, 像是CangJie5, SmartCangJie6… PS. 檢查系統是否使用正確的輸入法框架可使用im-config指令 注音輸入法只要安裝fcitx5-chewing即可

December 19, 2022 · 1 min · oopsmonk

Building Different Android Version Using schroot

I have a build environment with make4.1 and JDK8 for Android N/O, but JDK6 and make3.81 are required by Android KitKat. Here is a way to create a clean environment for Android KK. Create a new environment in current Ubuntu 16.04 install schroot and debootstrap sudo apt install schroot debootstrap if xenial no exist, update to latest version of debootstrap ls -l /usr/share/debootstrap/scripts/xenial Configure new environment edit /etc/schroot/schroot.conf [Build_KK] description=ubuntu16.04 Android_KK type=directory directory=/srv/chroot/Build_KK users=oopsmonk groups=oopsmonk root-groups=root profile=default Adding Mount points edit /etc/schroot/default/fstab...

October 24, 2017 · 2 min · oopsmonk

Firefox is Really Slow

Firefox is extremely slow on my system, include menu, right-click, tab opening…etc. Mozilla Firefox 40.0 Xubuntu 14.04 LTS 64-bit Linux 3.16.0-45-generic #60~14.04.1-Ubuntu SMP Fri Jul 24 21:16:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux After I turned off hardware acceleration, everything is fine. Type this in the browser’s address bar to trun it off: about:preferences#advanced

August 18, 2015 · 1 min · oopsmonk

Drawing IP Geolocation on World Map

I found some mystery visitors in nginx’s access log. I tried to figure out the location of those visitors and what they did. IP collection First copy nginx’s access log to a folder and save all logs into a single file. $ mkdir mysteryIPs && cd $_ $ sudo cp /var/log/nginx/access.log.* . $ zcat access.log.* > access-gz.log $ cat access.log.1 >> access-gz.log $ cat access.log >> access-gz.log Remove LAN accesses from log file, for example my subnet IP rang is 192....

August 1, 2015 · 4 min · oopsmonk

Install LaTeX on Ubuntu 14.04

This is a How-To article that include installation and compile LaTeX file to PDF using Texmaker, Sublime Text 3, and Vim. Install TeX Live Install texlive-latex-extra instead of texlive-latex-base. $sudo apt-get install texlive-latex-extra -y Initial user tree in home directory Before using tlmgr in user mode, you have to set up the user tree with the init-usertree action. tlmgr is TeX Live package manager, you can run tlmgr --help for more detail....

July 9, 2015 · 2 min · oopsmonk

New Feature: Real-Time Monitoring

Real-Time Monitor for rpi-monitor: Update system status every 5 seconds. Two HTML layouts: change different layout via click Real-Time on navigation bar. Project on github: rpi-monitor Layout 1(default): Layout 2:

July 4, 2015 · 1 min · oopsmonk