分享好友 系统运维首页 频道列表

[WSL2 Ubuntu22.04] 尝试使用 WSLg 运行 Elixir Desktop(未完成)

Ubuntu  2023-03-08 11:080

现状

启用 WSLg 后,Elixir Desktop 会不会像在 Ubuntu 上一样工作?

Elixir 桌面示例我试着跑步

窗口显示并似乎在移动,但 Todo 应用程序未显示在窗口中。这是一个空白的显示。

【WSL2 Ubuntu22.04】 Elixir DesktopをWSLgで動かしてみる(未完成)

显示窗口和菜单。
Extra 的内容也可以单独使用。
如果您使用 Extra 的 Open Browser 打开浏览器,内容将显示在浏览器中。

有了 WSLg 和 systemd 的支持,它的工作方式似乎和原来的 Ubuntu 一样,但不幸的是它没有工作。

处理与 dbus 相关的错误

当 systemd 未运行时,我收到有关 dbus 的错误(默认情况下在 WSL2 中的 ubuntu 上不工作)。
尝试启用 systemd。

不支持旧版本。下面的版本没问题。

> wsl --version
WSL バージョン: 0.70.4.0
カーネル バージョン: 5.15.68.1
WSLg バージョン: 1.0.45
MSRDC バージョン: 1.2.3575
Direct3D バージョン: 1.606.4
DXCore バージョン: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windowsバージョン: 10.0.22621.675

修改 wsl.conf 并关闭 wsl。

/etc/wsl.conf
[boot]
systemd=true

执行结果

$ ./run
Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]


20:12:32.267 [info] Application eex started at :nonode@nohost

20:12:32.272 [info] Application mime started at :nonode@nohost

20:12:32.273 [info] Child Agent of Supervisor Plug.Crypto.Application started
Pid: #PID<0.281.0>
Start Call: Agent.start_link(#Function<0.131734154/0 in Plug.Crypto.Application.start_crypto_keys>)
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.276 [info] Application plug_crypto started at :nonode@nohost

20:12:32.277 [info] Child :telemetry_handler_table of Supervisor :telemetry_sup started
Pid: #PID<0.286.0>
Start Call: :telemetry_handler_table.start_link()
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.277 [info] Application telemetry started at :nonode@nohost

20:12:32.279 [info] Child Plug.Upload of Supervisor Plug.Application started
Pid: #PID<0.291.0>
Start Call: Plug.Upload.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.279 [info] Application plug started at :nonode@nohost

20:12:32.281 [info] Child :pg of Supervisor #PID<0.295.0> (Supervisor.Default) started
Pid: #PID<0.296.0>
Start Call: :pg.start_link(Phoenix.PubSub)
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.281 [info] Application phoenix_pubsub started at :nonode@nohost

20:12:32.281 [info] Application phoenix_view started at :nonode@nohost

20:12:32.287 [info] Child Phoenix.CodeReloader.Server of Supervisor Phoenix.Supervisor started
Pid: #PID<0.302.0>
Start Call: Phoenix.CodeReloader.Server.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.287 [info] Child Phoenix.Transports.LongPoll.Supervisor of Supervisor Phoenix.Supervisor started
Pid: #PID<0.303.0>
Start Call: DynamicSupervisor.start_link([name: Phoenix.Transports.LongPoll.Supervisor, strategy: :one_for_one])
Restart: :permanent
Shutdown: :infinity
Type: :supervisor

20:12:32.287 [info] Application phoenix started at :nonode@nohost

20:12:32.310 [info] Child :disk_log_sup of Supervisor :kernel_safe_sup started
Pid: #PID<0.304.0>
Start Call: :disk_log_sup.start_link()
Restart: :permanent
Shutdown: 1000
Type: :supervisor

20:12:32.311 [info] Child :disk_log_server of Supervisor :kernel_safe_sup started
Pid: #PID<0.305.0>
Start Call: :disk_log_server.start_link()
Restart: :permanent
Shutdown: 2000
Type: :worker
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.

Sass is watching for changes. Press Ctrl-C to stop.

[watch] build finished, watching for changes...
[notice] Connecting to UNIX socket: "/run/user/1000/bus"

[notice] DBUS auth: sending initial data

[notice] Got GUID 'e7e1fcc8ed85d4c36cfa796d635e3c2d' from the server

[notice] Succesfully negotiated UNIX FD passing

[notice] Calling "/"::"org.freedesktop.DBus".:Hello([])

[notice] Calling {:ok,
 [
   {:dbus_message,
    {:dbus_header, 108, 1, 0, 1, 0, 1,
     [
       {1, "/"},
       {6, "org.freedesktop.DBus"},
       {2, "org.freedesktop.DBus"},
       {3, "Hello"}
     ]}, :undefined}
 ], ""}
[notice] Received {:dbus_message,
 {:dbus_header, 108, 2, 1, 1, 10, 1,
  [{6, ":1.16"}, {5, 1}, {8, "s"}, {7, "org.freedesktop.DBus"}]}, ":1.16"}

[notice] Received {:dbus_message,
 {:dbus_header, 108, 4, 1, 1, 10, 2,
  [
    {1, "/org/freedesktop/DBus"},
    {2, "org.freedesktop.DBus"},
    {3, "NameAcquired"},
    {6, ":1.16"},
    {8, "s"},
    {7, "org.freedesktop.DBus"}
  ]}, ":1.16"}

[notice] Hello connection id: ":1.16"

[notice] Calling {:ok,
 [
   {:dbus_message,
    {:dbus_header, 108, 1, 0, 1, 34, 2,
     [
       {8, "s"},
       {1, "/org/freedesktop/DBus"},
       {6, "org.freedesktop.DBus"},
       {2, "org.freedesktop.DBus"},
       {3, "NameHasOwner"}
     ]}, "org.kde.StatusNotifierWatcher"}
 ], ""}
[notice] Received {:dbus_message,
 {:dbus_header, 108, 2, 1, 1, 4, 3,
  [{6, ":1.16"}, {5, 2}, {8, "b"}, {7, "org.freedesktop.DBus"}]}, false}

Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
                                                                                                             Interactive Elixir (1.14.0) - press Ctrl+C to exit (type h() ENTER for help)

dbus错误不再显示,但显示不变(内容不显示)

参考

https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
https://x410.dev/cookbook/wsl/sharing-dbus-among-wsl2-consoles/


原创声明:本文系作者授权爱码网发表,未经许可,不得转载;

原文地址:https://www.likecs.com/show-308632242.html

查看更多关于【Ubuntu】的文章

展开全文
相关推荐
反对 0
举报 0
评论 0
图文资讯
热门推荐
优选好物
更多热点专题
更多推荐文章
ubuntu中vi下删除键和上下左右键输入字符异常(ABCD)
 刚安装的Ubuntu系统,使用vi编辑文本的时候,出现以下现象:点删除键输入了 D回车无效上下左右为字母光标乱跳 原因:自带的vi功能问题 解决:卸载原有vi,重新安装完整版本vim执行以下命令即可: sudo apt-get remove vim-common sudo apt-get install v

0评论2023-02-10714

ubuntu禁止ping操作(禁用ICMP协议访问) icmp协议支持ping命令
ping命令是计算机之间进行相互检测线路完好的一个应用程序,计算机间交流数据的传输没有经过任何的加密处理,因此我们在用ping命令来检测某一个服务器时,可能在因特网上存在某个非法分子,为了安全我们把ping给禁止掉。通过专门的黑客程序把在网络线路上传输

0评论2023-02-10349

Ubuntu16配置静态IP ubuntu16.04配置静态ip
一、静态IP地址配置sudo vi/etc/network/interfaces然后按照如下格式修改:注意这里的网卡名字是ens33auto loiface lo inet loopbackauto ens33iface ens33 inet staticaddress 192.168.1.106netmask 255.255.255.0gateway 192.168.1.1二、配置DNS#临时修改su

0评论2023-02-10379

ubuntu 更新源
在终端执行以下命令(第一条是备份现有服务器列表,第二条是使用Gedit编辑,您也可以使用自己喜爱的编辑器编辑。) sudo cp /etc/apt/sources.list /etc/apt/sources.list_backupsudo gedit /etc/apt/sources.list从以下各服务器列表内容中选择一段替换文件中

0评论2023-02-10712

ubuntu查看实时带宽
安装 sudo apt-get install bmon 查看网络 bmon -p eth0 - 输入g控制流量面板的显示和隐藏 - 输入d控制详情信息的显示和隐藏 - 输入q退出面板

0评论2023-02-10721

SSH连接虚拟机中的Ubuntu(转)
摘要:主要是解决不能使用ssh远程Ubuntu的问题、使用的远程工具是putty、也可以使用xshell、ubunut12.0.4是装在虚拟机中的、不过这个应该没有什么影响。一:问题的出现前两天使用VMware装了一个ubuntu12.0.4之后、因为常常使用命令行、又喜欢在虚拟机与实体机

0评论2023-02-10837

Ubuntu18.04中用CMake-gui安装OpenCV3.2.0和OpenCV_contrib-3.2.0
下载和添加依赖包1、首先更新 apt-get,在安装前最好先更新一下系统,不然有可能会安装失败。在终端输入:    sudo apt-get update    sudo apt-get upgrade2、接着安装官方给的opencv依赖包,在终端输入:    sudo apt-get install build-essential

0评论2023-02-10448

在Ubuntu中安装Wine 在ubuntu中安装vmware tools
安装 WINE 安装完 Wine ,先要运行一下 winecfg 英文 wine 官方用户指南 中文 wine 用户指南 一、自Ubuntu 软件库 进行 apt-get 安装 不推荐 sudo apt-get update sudo apt-get install wine 二、从Wine HQ 进行 apt-get 安装 推荐 可以自动更新到 最新 WineH

0评论2023-02-10388

Ubuntu集群 配置ntp服务
1、概述NTP(Network Time Protocol)是用来使计算机时间同步化的一种协议,它可以使计算机对其服务器或时钟源(如石英钟,GPS等等)做同步化,它可以提供高精准度的时间校正(LAN上与标准间差小于1毫秒,WAN上几十毫秒),且可介由加密确认的方式来防止恶毒的

0评论2023-02-10926

Ubuntu16.04 快速搭建lnmp环境
1.首先更新ubuntu软件源   执行命令:sudo apt-get update2.安装nginx   执行命令:sudo apt-get install nginx   默认web路径在/var/www/html,在浏览器地址栏输入你的地址,如果出现Welcome to Nginx!,说明安装成功3.安装mysql  执行命令:sudo apt

0评论2023-02-10416

ubuntu amd64 的锐捷连接解决办法---武汉大学
    昨日博主闲来弄了个ubuntu玩玩,于是上网成了个问题,博主武大信息学部,锐捷上校园网。装的是13.04的amd64。    凑巧在珞珈山水bbs上看到我在解决上网出现问题出现的相同情况,但是没有人回答,于是博主就在人人mark之后再此mark一下,希望更多朋

0评论2023-02-10384

ubuntu dig timeout解决方法,dnscat执行失败也是这个原因
 sudo vi /etc/resolvconf/resolv.conf.d/head写入: nameserver 223.5.5.5nameserver 223.6.6.6nameserver 114.114.114.114nameserver 8.8.8.8  

0评论2023-02-10456

更多推荐