Linux

共 11 篇文章

Ubuntu 22.04 setup after installation

2 分鐘閱讀

The following setup is my customization while ubuntu initialization

Operating System

Input method

fcitx5-rime

sudo apt install fctix5-*
im-config  

勉強適合Ubuntu22.04的中文輸入法

nfs-common

sudo apt install nfs-common
sudo mount -t nfs $remote_host:/remote/path /local/path

GNOME

window minimize

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

circle windows

gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'

If the commands are not working, you can install dconf-editor to set.

Switching between windows with scroll wheel on Ubuntu Dock
Essential Guide: How to Enable ‘Minimize on Click’ on Ubuntu Quickly

Building hexo blog using docker

2 分鐘閱讀

Introduction

目的是只需用docker-compose up -d就能快速佈署
然後docker-compose restart就能更新內容與設定

爲了能夠直接在本機撰寫文章,需要將container內的USER設定成和本機一致
這點可以使用docker run -u $(id -u):$(id -g)或在docker-compose.yml設定user參數
如果有其他管理檔案權限的解法歡迎留言分享

因此我建立了一個image: hunglin59638/hexo-blog
可透過上述操作方便管理跟快速佈署