# winform-launch-remote-xclient **Repository Path**: ppnt/winform-launch-remote-xclient ## Basic Information - **Project Name**: winform-launch-remote-xclient - **Description**: 发送命令到linux服务器,使用nohup命令后台执行,最终实现运行linux界面显示到windows - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-30 - **Last Updated**: 2022-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## winform-launch-remote-xclient #### 简介 基本信息 | key | desc | |------|-----------------------------------| | name | winform-launch-remote-xclient | | ide | Visual Studio 2019 | | type | Windows Forms App(.NET Framework) | 简介 发送命令到linux服务器,使用nohup命令后台执行,最终实现运行linux界面显示到windows #### 使用步骤 1).启动CentOS-7安装桌面环境 yum -y group install 'Server with GUI' 2).安装CentOS-7安装常用开发软件例如java-11,eclipse-jee,eclipse-cpp,android-studio,idea 3).建立软件的软连接 eclipse-jee ln -sf /opt/eclipse/eclipse-jee/eclipse /usr/local/bin/eclipse-jee eclipse-cpp ln -sf /opt/eclipse/eclipse-cpp/eclipse /usr/local/bin/eclipse-cpp android-studio ln -sf /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio idea ln -sf /opt/idea-IU-193.5662.53/bin/idea.sh /usr/local/bin/idea 4)在windows上启动MobaXterm 5)设置MobaXtem,设置步骤 Settings--\>Configurtion--\>X11 设置 X11 remote acess=full ![](media/c51922d8ad8df757043b1f29930bc8de.png) 启动winform-launch-remote-xclient测试 输入正确的用户名,密码,主机名,端口号 Display输入"本机IP:0.0" Cmd 输入要执行的命令 点击执行 ![](media/22f1e87626f4d128b155a4ccace32c0c.png) #### 测试已经支持命令 gnome-abrt gnome-boxes gnome-calculator gnome-character-map gnome-clocks gnome-contacts gnome-control-center gnome-dictionary gnome-disk-image-mounter gnome-disks gnome-font-viewer gnome-help gnome-session-custom-session gnome-session-properties gnome-shell-extension-prefs gnome-software gnome-system-monitor gnome-terminal gnome-text-editor gnome-tweaks gnome-weather gimp firefox #### 运行效果 ##### gnome-system-monitor 注意任务栏,启动CentOS-7上的gnome-system-monitor,任务栏显示gnome-system-monitor图标 ![](media/360b2389aafba7af212c6460e197da2c.png) ##### gnome-terminal gnome-terminal运行效果 ![](media/23ea04430fffb174d5e026dd3b522853.png) ##### eclipse-jee ![](media/24a5649bca3df1ae419b5a8dae3aea77.png) ![](media/d83154c553a90dc1d241c12876550e19.png) ##### android-studio ![](media/1432008a2a333ae3ba22c8e76deb22f1.png) ##### idea ![](media/f8fb4d7f356400dcb2c7761f160e8573.png)