the use of VNC in linux

in Gentoo linux

Posted by JXLIU on February 19, 2022

##vnc服务端

1
2
vncserver #即可启动一个vncserver
vncpasswd #为vncserver设置访问密码

Gentoo plasma OS 中,.vnc/xstartup 需要如下设置

1
2
3
4
5
6
7
8
9
10
#!/bin/sh
eval "$(dbus-launch --sh-syntax --exit-with-session)"
export LANG="en_US.utf8"
export LC_ALL="en_US.UTF-8"
export LC_TYPE="en_US.utf8"
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE="fcitx"
export GTK_IM_MODULE="fcitx"
#vncconfig --nowin &
startplasma-x11 &