fix
This commit is contained in:
39
my-blog/content/posts/2025-10-20-arch-vnc.md
Normal file
39
my-blog/content/posts/2025-10-20-arch-vnc.md
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
title: "archlinuxでvnc"
|
||||
slug: "arch-vnc"
|
||||
date: "2025-10-20"
|
||||
tags: ["archlinux", "vnc", "mac"]
|
||||
draft: false
|
||||
---
|
||||
|
||||
自分のブログに書いてあると思ったんだけど、見当たらなかったので。
|
||||
|
||||
`xorg`, `i3`を使用しています。
|
||||
|
||||
```sh
|
||||
$ sudo pacman -S tigervnc
|
||||
```
|
||||
|
||||
```sh
|
||||
$ vncpasswd
|
||||
$ x0vncserver -rfbauth ~/.config/tigervnc/passwd
|
||||
```
|
||||
|
||||
macから接続するには
|
||||
|
||||
```sh
|
||||
$ open vnc://192.168.1.2:5900
|
||||
```
|
||||
|
||||
## 操作感を同じにする
|
||||
|
||||
1. 自動起動
|
||||
2. `Win`から`Alt`に変更。その上で`setxkbmap`でkey-layoutを変更。
|
||||
|
||||
```sh:~/.config/i3/config
|
||||
exec --no-startup-id x0vncserver -rfbauth ~/.config/tigervnc/passwd
|
||||
exec_always --no-startup-id setxkbmap -option altwin:swap_alt_win
|
||||
#set $mod Mod4
|
||||
set $mod Mod1
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user