环境介绍
在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 set
a screen for a GtkWindow before using the window
(Manager:80189): Gtk-WARNING **: 14:09:28.901: Screen for GtkWindow not set; you must always set
a 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 set
a 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 set
a 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]$ ./disql
disql V8
用户名:^C
[dmdba@dmdsc74 bin]$ ./disql SYSDBA/SYSDBA
服务器[LOCALHOST:5236]:处于普通打开状态
登录使用时间 : 3.754(ms)
disql V8
SQL> 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 host
xhost: must be on local machine to enable or disable access control.
[dmdba@dmdsc74 ~]$ /home/dmdba/dmdbms/tool/manager
2.3 日志截图
文章来源:https://www.toymoban.com/news/detail-742297.html
2.4 软件界面正常打开
文章来源地址https://www.toymoban.com/news/detail-742297.html
到了这里,关于MobaXterm配置调用图形画界面的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!