Extend Volume Size on AWS EC2

If we wanna extend the storage space of the computer, we need to shut the machine down then you are able to add another storage device for it. Advantages of using Elastic Block Store(EBS) are reboot the instance is not needed. the space can be extended instead of adding a new device. Increase EBS volume size on EC2 is easy: Modify the volume on AWS Console Extend the partition by growpart Extend the file system by resize2fs(ext4) or xfs_growfs(xfs) Step 1: Modify the volume on AWS Console Login to AWS Console and select a volume via the Volume ID then click the Modify button on the top right corner....

August 11, 2023 · 3 min · oopsmonk

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

Lazy.nvim

When I was switching from Vim to Neovim, I use The 300 line init.lua challenge and wbthomason/packer.nvim for the configuration. the Packer is working fine and has no big problems. Recently, I switched to folke/lazy.nvim because it has some features that saving a lot of time for users frequently working on a new environment, like me. Better TUI design Automatically install missing plugins before starting up Uses lazy-lock.json to track and restore plugins Compilation is no needed after plugins changes Packer and Lazy....

May 6, 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

Note-taking and file sharing with Syncthing and Joplin

You can find many note-taking services, like, Evernote, Google Keep, Notion, Obsidian and online storage services such as, Dropbox, Google Drive, OneDrive, iCloud. They are easy to use and secure. But, secure is not equal to private! A way to keep privacy is host private services by self. Edward Snowden’s Privacy Tips: “Get Rid Of Dropbox,” Avoid Facebook And Google This is how I share/edit notes and files with different devices which service providers are unable to peek and analyze my private contents....

June 5, 2022 · 4 min · oopsmonk

Install Perf on Ubuntu 20.04

What is Perf? Perf or perf-event is a Linux profiler and is part of the Linux Kernel which can help you solve advanced performance and troubleshooting functions. It covers hardware level (CPU/PMU, Performance Monitoring Unit) features and software features (software counters, tracepoints) as well. Install on Ubuntu If perf has not installed on the system $ perf WARNING: perf not found for kernel 5.4.0-109 You may need to install the following packages for this specific kernel: linux-tools-5....

April 28, 2022 · 2 min · oopsmonk

RPi vs i5-8250U

utarray benchmarking Week48~52 小筆記 bazel installation on Raspberry Pi Issue#1308 $ sudo apt-get install build-essential openjdk-8-jdk python zip unzip $ wget https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-dist.zip $ mkdir bazel-0.19.2 && unzip ./bazel-0.19.2-dist.zip -d bazel-0.19.2 $ cd bazel-0.19.2 $ env BAZEL_JAVAC_OPTS="-J-Xms384m -J-Xmx512m" bash ./compile.sh 🍃 Building Bazel from scratch...... 🍃 Building Bazel with Bazel. .WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown". INFO: Analysed target //src:bazel_nojdk (233 packages loaded, 10401 targets configured)....

December 1, 2018 · 2 min · oopsmonk