Vscode

共 2 篇文章

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

vscode Could not fetch remote environment in openmediavault

1 分鐘閱讀

vscode的Remote-SSH可連接遠端主機進行操作
但server端是openmediavault就無法
原因是因爲Remote-SSH需要server端允許tcp forwarding
一般Linux中/etc/ssh/sshd_config是預設AllowTCPForwarding yes

[Debug] SSH Tunnel 無法正常使用

OMV的設定方式不在/etc/ssh/sshd_config這位置設定
解決方式:

  1. Login OMV web gui
  2. Services > SSH > TCP forwarding
  3. Enable: permit to do SSH tunneling

Remote SSH via Visual Studio Code