MobaXterm配置调用图形画界面
短信预约 -IT技能 免费直播动态提醒
MobaXterm配置调用图形画界面
环境介绍
在windows环境使用 shell 工具有时候直接调用图形画界面会报错,通过配置环境正常调用软件的图形画界面
1 直接调用报错,无法打开软件图形画界面
Pre-authentication banner message from server:|| Authorized users only. All activities may be monitored and reported.End of banner message from server ┌────────────────────────────────────────────────────────────────────┐ │ • MobaXterm 20.0 • │ │ (SSH client, X-server and networking tools) │ │ │ │ ➤ SSH session to root@192.168.100.169 │ │ • SSH compression : ✘ │ │ • SSH-browser : ✔ │ │ • X11-forwarding : ✘ (disabled or not supported by server) │ │ • DISPLAY : 192.168.100.17:0.0 │ │ │ │ ➤ For more info, ctrl+click on help or visit our website │ └────────────────────────────────────────────────────────────────────┘Authorized users only. All activities may be monitored and reported.Web console: https://dmdsc74:9090/ or https://192.168.248.74:9090/Last login: Wed Mar 8 10:24:32 2023 from 192.168.248.1[root@dmdsc74 ~]# su - dmdba上一次登录: 三 3月 8 13:52:37 CST 2023 pts/0 上[dmdba@dmdsc74 ~]$ /home/dmdba/dmdbms/tool/manager(Manager:80189): GLib-GObject-WARNING **: 14:09:28.898: invalid (NULL) pointer instance(Manager:80189): GLib-GObject-CRITICAL **: 14:09:28.899: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed(Manager:80189): Gtk-CRITICAL **: 14:09:28.899: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gtk-WARNING **: 14:09:28.901: Screen for GtkWindow not set; you must always seta screen for a GtkWindow before using the window(Manager:80189): Gtk-WARNING **: 14:09:28.901: Screen for GtkWindow not set; you must always seta screen for a GtkWindow before using the window(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY (display)' failed(Manager:80189): Gtk-WARNING **: 14:09:28.901: Screen for GtkWindow not set; you must always seta screen for a GtkWindow before using the window(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gtk-WARNING **: 14:09:28.901: Screen for GtkWindow not set; you must always seta screen for a GtkWindow before using the window(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_monitor_geometry: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed(Manager:80189): Gdk-CRITICAL **: 14:09:28.901: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed## A fatal error has been detected by the Java Runtime Environment:## SIGSEGV (0xb) at pc=0x00007f0670792aa7, pid=80189, tid=139666085889792## JRE version: OpenJDK Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)# Java VM: OpenJDK 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 compressed oops)# Problematic frame:# C [libgdk-x11-2.0.so.0+0x7baa7] gdk_window_enable_synchronized_configure+0x7## Core dump written. Default location: /home/dmdba/core or core.80189## An error report file with more information is saved as:# /home/dmdba/hs_err_pid80189.log## If you would like to submit a bug report, please visit:# http://bugreport.sun.com/bugreport/crash.jsp# The crash happened outside the Java Virtual Machine in native code.# See problematic frame for where to report the bug.#/home/dmdba/dmdbms/tool/manager:行 20: 80189 已放弃 (核心已转储)"$JAVA_HOME/bin/java" -Xms256m -Xmx2048m -XX:+PerfDisableSharedMem -DDM_HOME="$DM_HOME" -Djava.library.path="$DM_HOME/bin" -Ddameng.log.file="$TOOL_HOME/log4j.xml" -DeclipseHome="$TOOL_HOME" -Dosgi.nl="$INSTALL_LANGUAGE" -Ddameng.dts.explorer.root="$TOOL_HOME/workspace/local/dts" -Ddameng.isql.explorer.root="$TOOL_HOME/workspace/local/isql" -Duse_bak2=true -Dapp.name=manager -jar "$TOOL_HOME/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar" -os linux -ws gtk -arch x86_64 -showsplash "$TOOL_HOME/manager.bmp" -data "$TOOL_HOME/workspace/manager" -product com.dameng.manager.product -name Manager[dmdba@dmdsc74 ~]$
2 配置环境后调用软件图形画界面成功
2.1 命令行日志
Pre-authentication banner message from server:|| Authorized users only. All activities may be monitored and reported.End of banner message from server ┌────────────────────────────────────────────────────────────────────┐ │ • MobaXterm 20.0 • │ │ (SSH client, X-server and networking tools) │ │ │ │ ➤ SSH session to root@192.168.100.169 │ │ • SSH compression : ✘ │ │ • SSH-browser : ✔ │ │ • X11-forwarding : ✘ (disabled or not supported by server) │ │ • DISPLAY : 192.168.100.17:0.0 │ │ │ │ ➤ For more info, ctrl+click on help or visit our website │ └────────────────────────────────────────────────────────────────────┘Authorized users only. All activities may be monitored and reported.Web console: https://dmdsc74:9090/ or https://192.168.248.74:9090/Last login: Tue Mar 7 13:42:32 2023 from 192.168.248.1[root@dmdsc74 ~]# su - dmdba上一次登录: 二 3月 7 16:34:46 CST 2023 pts/0 上[dmdba@dmdsc74 ~]$ cd dmdbms/bin[dmdba@dmdsc74 bin]$ ./disqldisql V8用户名:^C[dmdba@dmdsc74 bin]$ ./disql SYSDBA/SYSDBA服务器[LOCALHOST:5236]:处于普通打开状态登录使用时间 : 3.754(ms)disql V8SQL> EXIT[dmdba@dmdsc74 bin]$ exit注销[root@dmdsc74 ~]# su - dmdba上一次登录: 三 3月 8 10:24:45 CST 2023 pts/0 上[dmdba@dmdsc74 ~]$ export DISPLAY=192.168.100.17:0.0[dmdba@dmdsc74 ~]$ xshout +-bash: xshout:未找到命令[dmdba@dmdsc74 ~]$ xhost +access control disabled, clients can connect from any hostxhost: must be on local machine to enable or disable access control.[dmdba@dmdsc74 ~]$ /home/dmdba/dmdbms/tool/manager
2.3 日志截图
2.4 软件界面正常打开
来源地址:https://blog.csdn.net/qq_37358909/article/details/129402419
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341