ubuntu - 如何使用 xrdp 在 ubuntu 中重用 session

标签 ubuntu session xfce xrdp

当远程到 ubuntu 14.04 时,我只想使用一个 session 。我在谷歌搜索并找到了方法,但设置不成功。

  • sudo apt-get 更新
  • sudo apt-get install xfce4
  • sudo apt-get install tightvncserver
  • sudo apt-get install xrdp
  • 配置 xsession & startwm.sh 文件:

  • echo xfce4-session >~/.xsession

    须藤纳米/etc/xrdp/startwm.sh
    #!/bin/sh
    
    if [ -r /etc/default/locale ]; then
      . /etc/default/locale
      export LANG LANGUAGE
    fi
    
    startxfce4 
    
  • 配置/etc/xrdp/xrdp.ini:

    [xrdp8]

    名称=测试

    lib=libvnc.so

    用户名=用户

    密码=密码

    ip=127.0.0.1

    端口=5912
  • 须藤服务 xrdp 重启
  • 远程到 ubuntu PC,显示的弹出窗口

    开始连接

    连接到 127.0.0.1 5912

    错误:连接问题

  • 我怎么解决这个问题。请帮我。谢谢先进

    最佳答案

    sudo apt-get install tightvncserver not required to install.
    
    Here I am gonna make use of xfce4 desktop environment.
    
    Follow the steps below:---
    
    1)sudo apt-get update
    2)sudo apt-get install xrdp
    3)sudo apt-get install xfce4
    4)sudo apt-get install xfce4-terminal
    5)echo xfce4-session >~/.xsession​
    6)nano /etc/xrdp/startwm.sh
    
    
    check below script content is there or not in your file (startwm.sh), if not then please add them. 
    
    #!/bin/sh
    
    if [ -r /etc/default/locale ]; then
      . /etc/default/locale
      export LANG LANGUAGE
    fi
    
    startxfce4
    
    7) check status whether running or not
    
       sudo service xrdp status
    
    
    8) to use same session add below line in mentioned file
    
    go to /etc/xrdp/xrdp.ini:
    
    [xrdp8]
    name=reconnect
    lib=libvnc.so
    username=ask
    password=ask
    ip=127.0.0.1
    port=ask5910 ( you can also use "port=ask" , but you need to remember previous running 
                  port number. )
    
    (注意:- 默认端口号是 5910,这就是我提到“port=ask5910”的原因。)

    关于ubuntu - 如何使用 xrdp 在 ubuntu 中重用 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47256823/

    相关文章:

    c++ - 如何在 C++ 中使用 FastCGI (nginx) 创建 cookie

    java - 将 session 属性传递到自定义 JSP 标记中

    c - xfce 鼠标垫源代码中的损坏符号

    c - xfce 中 gnome_url_show() 的替代方案

    linux - 编译 fatal error boost/文件系统

    mysql - ubuntu 无法启动mysql

    node.js - 为什么 LeetCode 扩展无法在 ubuntu 16.04 上的 Visual Studio Code 中运行?

    ubuntu - AWS S3 存储桶挂载脚本在重启时不起作用

    python - cron 作业没有将输出写入正确的输出日志文件

    java - 我如何获得 Spring Security SessionRegistry?