Skip to content

Operation System / Desktop

Linux

Open file manager of current path in command line

xdg-open .

Debian

如何知道目前Debian版本號碼

Install

  1. download Debian iso image file (default is amd64, compatible with Intel & AMD chip)
  2. make a bootable USB drive (recommanded: Rufus)

Desktop

install Debian -- Details of package gnome-tweaks in bookworm, can change Caps to Ctrl

install multiple desktop environment
sudo tasksel

Desktop Entry (launcher, icon)

path: ~/.local/share/applications/{app_name}/{app_name}.desktop

[Desktop Entry]
Name=Zotero
Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\\/\\///')))/zotero -url %U"
Icon=/opt/zotero/icons/icon128.png
Type=Application
Terminal=false
Categories=Office;
MimeType=text/plain;x-scheme-handler/zotero;application/x-research-info-systems;text/x-research-info-systems;text/ris;application/x-endnote-refer;application/x-inst-for-Scientific-info;application/mods+xml;application/rdf+xml;application/x-bibtex;text/x-bibtex;application/marc;application/vnd.citationstyles.style+xml
X-GNOME-SingleWindow=true

輸入法

切換語系 Super Key + Space | 切換輸入法 Ctrl + Shift

ChineseInputMethod - Debian Wiki

設定輸入法
im-config
Install fcitx5 traditional chinese input
apt install fcitx5 fcitx5-chinese-addons fcitx5-chewyin

reference:

Development Environment

Install Python using Pyenv:

apt install build-essential \
libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python3-openssl

CentOS

list all supported version
yum --showduplicate list {package name}

Windows

WSL

mount external hard drive

sudo mount -t drvfs D: /mnt/d

Desktop

screenshot: Windows+Shift+S

分享一個讓老舊 Windows 筆電執行速度更快的方法 | The Will Will Web

Servers

修改local DNS

C:\WINDOWS\system32\drivers\ect\hosts 要有管理員權限

File System

via: https://stackoverflow.com/a/466596/644070

FAT32 NTFS EXT4
Max. # of files 268,173,300 2^32 - 1 (4,294,967,295) 2^32 - 1 (4,294,967,295)
Max. # of files per directory 2^16 - 1 (65,535) 10 million approximately (can be extended with large_dir feature)
Max. file size 2 GiB - 1 without LFS, 4 GiB - 1 with - Implementation: 2^44 - 2^6 bytes (16 TiB - 64 KiB)
- Theoretical: 2^64 - 2^6 bytes (16 EiB - 64 KiB)
2^44 - 1 bytes (16 TiB - 1)
Max. volume size - Implementation: 2^32 - 1 clusters (256 TiB - 64 KiB)
- Theoretical: 2^64 - 1 clusters (1 YiB - 64 KiB)
2^48 - 1 bytes (256 TiB - 1)
list filesystem type
lsblk -f