# Ubuntu 22.04
### 常用工具
```bash
# 編輯器工具
sudo apt install -y vim-gtk3 tmux ctags
# 開發用工具
sudo apt install -y git maven
sudo apt install -y python3 python3-pip terminator
# 安裝 openJDK 8 及 11
sudo apt install -y openjdk-8-jdk openjdk-11-jdk
# 切換不同版本的 Java
sudo update-alternatives --config java
```
### 無蝦米輸入法
iBus
```bash
#!/bin/bash
sudo ibus-table-createdb -s liu_ibus_table.txt -n liu.db
sudo cp liu.db /usr/share/ibus-table/tables/
sudo cp liu.png /usr/share/ibus-table/icons/
```
### 鍵盤快速鍵
設定值→鍵盤→鍵盤快速鍵→檢視與自訂快捷鍵
- 輸入→切換至下個輸入來源→Ctrl-Space
- 系統→鎖定螢幕→Pause
### [羅技木星 Ubuntu 設定方式](https://help.ubuntu.com/community/Logitech_Marblemouse_USB)

```bash
sudo vi /usr/share/X11/xorg.conf.d/40-libinput.conf
```
```
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "ScrollMethod" "button" #press button to enable scroll
Option "ScrollButton" "3" #press button 3 to enable scroll
Option "ButtonMapping" "1 2 3 4 5 6 7 8" #invert scroll direction
EndSection
```
```
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "3"
Option "MiddleEmulation" "true"
EndSection
```
```bash
gsettings set org.gnome.desktop.peripherals.trackball scroll-wheel-emulation-button 3
```
Settings → Mouse → Natural Scrolling
### 安裝 Powerline
```bash
sudo apt install -y fonts-powerline powerline
source /usr/share/powerline/bindings/bash/powerline.sh
```