This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
能安装`code`,存在网络连接问题 | ||
|
||
参考: | ||
|
||
[sshcode](https://github.com/cdr/sshcode) | ||
|
||
[code-server](https://github.com/cdr/code-server) | ||
|
||
[WSL下使用VcXsrv启动chromium browser及常见错误解析 (ubuntu18.04, 图形界面)](https://www.cnblogs.com/freestylesoccor/articles/9630758.html) | ||
|
||
[解决 canberra-gtk-module 加载失败的问题](https://blog.csdn.net/Longyu_wlz/article/details/85254588) | ||
|
||
[VSCode: There is no Pip installer available in the selected environment](https://stackoverflow.com/questions/50993566/vscode-there-is-no-pip-installer-available-in-the-selected-environment) | ||
|
||
启动`docker`: | ||
|
||
``` | ||
$ docker run -d \ | ||
-v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
-e DISPLAY=unix${DISPLAY} \ | ||
-e LOCAL_USER_ID=`id -u ${USER}` \ | ||
-e XMODIFIERS="@im=fcitx" \ | ||
-e QT_IM_MODULE="fcitx" \ | ||
-e GTK_IM_MODULE="fcitx" \ | ||
-v ${HOME}/docs:/home/user/docs \ | ||
--name code \ | ||
code:v1 | ||
``` | ||
|
||
## 问题 | ||
|
||
`vscode`无法输入中文,以及中文显示乱码问题? | ||
|
||
通过`docker exec`进入容器,可以在命令行输入和显示中文 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters