AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-649079

thursDave's questions

Martin Hope
thursDave
Asked: 2018-03-15 06:08:11 +0800 CST

Ubuntu Mate 16.04 上的 xRDP - 连接错误

  • 2

在戴尔 Optiplex 780 上全新安装和更新 Ubuntu Mate 16.04。

从 Windows 10 客户端连接。

之后直接安装 xRDP 并尝试从 Windows 连接。

进入 RDP 会话并输入凭据。然后...

得到这个错误。

Connecting to sesman IP 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
srdp_mm_process_login_response:login successful for display
started connecting
connecting to 127.0.0.1 5910
error-problem connecting

运行此命令

:~$ sudo netstat -peant | grep "127.0.0.1"

并得到:

tcp        0      0 127.0.0.1:3350          0.0.0.0:*              LISTEN      0          39396       8082/xrdp-sesman
tcp        0      0 127.0.0.1:6010          0.0.0.0:*            LISTEN      1000       93529       19428/2 

用grepping“5910”尝试了同样的方法,它什么也没返回。

尝试删除 xrdp,然后先安装tightvncserver,创建vnc 桌面连接,然后安装xRDP,因为这是我之前在其他计算机上设置的方式;

我在其他计算机上使用 VNC,然后发现了 xRDP,然后安装了 xDRP,杀死了 :1 桌面并且能够毫无障碍地使用 xRDP。

在这个桌面上,根据 systemctl 检查的结果,xRDP 服务运行良好。

尝试连接然后查看我的 /var/log/syslog ,结果如下:

Mar 14 09:20:18 IP-LINSRV3 systemd[1]: Started Session c10 of user admin.
Mar 14 09:20:18 IP-LINSRV3 org.a11y.Bus[19492]: ** (process:19503): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Mar 14 09:20:18 IP-LINSRV3 mate-session[19501]: GLib-GIO-CRITICAL: g_settings_schema_source_lookup: assertion 'source != NULL' failed
Mar 14 09:20:18 IP-LINSRV3 org.a11y.Bus[19492]: Activating service name='org.a11y.atspi.Registry'
Mar 14 09:20:18 IP-LINSRV3 mate-session[19501]: GLib-GIO-ERROR: No GSettings schemas are installed on the system#012aborting...
Mar 14 09:20:18 IP-LINSRV3 kernel: [ 2536.493204] traps: mate-session[19501] trap int3 ip:7fb46a4309eb sp:7fffcadee2c0 error:0
Mar 14 09:20:18 IP-LINSRV3 org.a11y.Bus[19492]: Successfully activated service 'org.a11y.atspi.Registry'
Mar 14 09:20:18 IP-LINSRV3 org.a11y.atspi.Registry[19508]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Mar 14 09:20:19 IP-LINSRV3 org.a11y.atspi.Registry[19508]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":11.0"
Mar 14 09:20:19 IP-LINSRV3 org.a11y.atspi.Registry[19508]:       after 11 requests (9 known processed) with 0 events remaining.

cat /etc/xrdp/xrdp.ini 的第一位内容如下:

[globals]
bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=low
channel_code=1
max_bpp=24
#black=000000
#grey=d6d3ce
#dark_grey=808080
#blue=08246b
#dark_blue=08246b
#white=ffffff
#red=ff0000
#green=00ff00
#background=626c72

[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1

从这个帖子中得到了一些想法,

连接错误/问题(Windows 10 RDP 到 XRDP)

其中引用了这个...

https://ubuntuforums.org/showthread.php?t=1314336

但是,没有骰子。

我应该在 Mate 中做一些不同的事情吗?

我应该在另一个线程中发布这个吗?

帮帮我,Ubuntu Mates!


更新!

没有改变任何东西,但重新启动。第一次遇到同样的错误,但后来...

现在我可以从 xRDP 登录提示完全登录,而不会出现以前的错误,但会看到这个灰色的像素化屏幕。

连接到 RDP 会话

/var/log/syslog 看起来像......

Mar 14 10:10:23 IP-LINSRV3 systemd[1]: Started Session c6 of user admin.
Mar 14 10:10:24 IP-LINSRV3 mate-session[2455]: GLib-GIO-CRITICAL: g_settings_schema_source_lookup: assertion 'source != NULL' failed
Mar 14 10:10:24 IP-LINSRV3 org.a11y.Bus[2446]: Activating service name='org.a11y.atspi.Registry'
Mar 14 10:10:24 IP-LINSRV3 org.a11y.Bus[2446]: ** (process:2457): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Mar 14 10:10:24 IP-LINSRV3 mate-session[2455]: GLib-GIO-ERROR: No GSettings schemas are installed on the system#012aborting...
Mar 14 10:10:24 IP-LINSRV3 kernel: [  403.818015] traps: mate-session[2455] trap int3 ip:7f92f62ec9eb sp:7fff11338830 error:0
Mar 14 10:10:24 IP-LINSRV3 org.a11y.Bus[2446]: Successfully activated service 'org.a11y.atspi.Registry'
Mar 14 10:10:24 IP-LINSRV3 org.a11y.atspi.Registry[2461]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry

cattedout .xsession-errors 并得到了这个;

openConnection: connect: No such file or directory
cannot connect to brltty at :0
mate-session[1371]: WARNING: Unable to find provider '' of required component 'dock'
grep: /home/admin/.xinputrc: No such file or directory
** (process:1690): WARNING **: Warning: show_on_monitor_number is no longer a valid config option for the current version ofTilda.
** (process:1690): WARNING **: Warning: scroll_background is no longer a valid config option for the current version of Tilda.
** (process:1690): WARNING **: Warning: use_image is no longer a valid config option for the current version of Tilda.
/usr/lib/mate-optimus/mate-optimus-applet:7: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.from gi.repository import Gtk, Gdk
(nm-applet:1646): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:50: RuntimeWarning: You have imported the Gtk 2.0 module.  Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail.  As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python mod
ule to use with Gtk 2.
  warnings.warn(warn_msg, RuntimeWarning)
sys:1: PyGIWarning: Caja was imported without specifying a version first. Use gi.require_version('Caja', '2.0') before import to ensure that the right version gets loaded.
** Message: Initializing gksu extension...
(nm-applet:1646): GLib-CRITICAL **: g_hash_table_remove_all: assertion 'hash_table != NULL' failed
(nm-applet:1646): nm-applet-CRITICAL **: nma_icons_free: assertion 'NM_IS_APPLET (applet)' failed
(blueman-applet:1634): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
/usr/lib/python3/dist-packages/blueman/plugins/applet/AppIndicator.py:8: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AppIndicator3 as girAppIndicato
ERROR:dbus.proxies:Introspect error on org.bluez:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did n
ot receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy bl
ocked the reply, the reply timeout expired, or the network connection was broken.
ERROR:dbus.proxies:Introspect error on org.bluez:/org/bluez: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Timed
Out: Failed to activate service 'org.bluez': timed out
ERROR:dbus.proxies:Introspect error on org.bluez:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.TimedOut: Fail
ed to activate service 'org.bluez': timed out
Xsession: X session started for  at Wed Mar 14 10:06:10 EDT 2018
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
localuser:admin being added to access control list
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
openConnection: connect: No such file or directory
cannot connect to brltty at :0
/etc/xrdp/startwm.sh: 3: [: x: unexpected operator
Xlib:  extension "RANDR" missing on display ":11.0".
mate-session[2180]: GLib-GIO-CRITICAL: g_settings_schema_source_lookup: assertion 'source != NULL' failed
mate-session[2180]: GLib-GIO-ERROR: No GSettings schemas are installed on the system
aborting...
/home/admin/.xsession: line 1:  2180 Trace/breakpoint trap   (core dumped) mate-session
Xsession: X session started for  at Wed Mar 14 10:07:09 EDT 2018
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
localuser:admin being added to access control list
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
openConnection: connect: No such file or directory
cannot connect to brltty at :0
/etc/xrdp/startwm.sh: 3: [: x: unexpected operator
Xlib:  extension "RANDR" missing on display ":11.0".
mate-session[2291]: GLib-GIO-CRITICAL: g_settings_schema_source_lookup: assertion 'source != NULL' failed
mate-session[2291]: GLib-GIO-ERROR: No GSettings schemas are installed on the system
aborting...
/home/admin/.xsession: line 1:  2291 Trace/breakpoint trap   (core dumped) mate-session
Xsession: X session started for  at Wed Mar 14 10:10:24 EDT 2018
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
localuser:admin being added to access control list
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x5
  Serial number of failed request:  6
  Current serial number in output stream:  8
openConnection: connect: No such file or directory
cannot connect to brltty at :0
/etc/xrdp/startwm.sh: 3: [: x: unexpected operator
Xlib:  extension "RANDR" missing on display ":11.0".
mate-session[2455]: GLib-GIO-CRITICAL: g_settings_schema_source_lookup: assertion 'source != NULL' failed
mate-session[2455]: GLib-GIO-ERROR: No GSettings schemas are installed on the system
aborting...
/home/admin/.xsession: line 1:  2455 Trace/breakpoint trap   (core dumped) mate-session
16.04 mate xrdp tightvncserver
  • 1 个回答
  • 6899 Views
Martin Hope
thursDave
Asked: 2017-07-12 10:57:04 +0800 CST

从同级不同目录中删除同名子目录

  • 4

没有简单的方法来解释,但这是我在演示中的问题。我有一个带有主目录备份的文件服务器。他们读起来像:

/home/ron/Downloads
/home/ron/Documents
/home/rob/Downloads
/home/rob/Documents
/home/tom/Downloads
/home/tom/Documents
/home/don/Downloads
/home/don/Documents

我如何使用一个命令删除所有名为 Downloads 的文件夹,而不是调用用户的名称,而是使用速记?

我刚在想:

rm -r /home/*/Downloads

最好的方法是什么?

注意:我有几百个文件夹要在不止一台服务器上像这样清除。

谢谢。

command-line
  • 1 个回答
  • 3520 Views
Martin Hope
thursDave
Asked: 2017-02-01 09:14:12 +0800 CST

无法完全卸载并重新安装 Samba - 唯一错误?

  • 1

运行 16.04.1 服务器 32,顶部有 LXDE。只是把自己弄得一团糟。请帮忙。想要修复它以更好地了解 Linux。重新安装操作系统很容易,但就是不想。

使用卸载的 Samba

sudo apt-get remove --purge samba

也试过这些

sudo apt-get -f install



dnsadmin@trm-linfs04:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

    sudo apt-get autoremove


Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

进行清除可能是一个错误,但是...

dnsadmin@trm-linfs04:~$ sudo dpkg --configure -a                                                                                Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Job for smbd.service failed because the control process exited with error code.                                                 See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 samba
dnsadmin@trm-linfs04:~$ sudo status smbd
status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/up                                                start: Connection refused
dnsadmin@trm-linfs04:~$ status: Unable to connect to Upstart: Failed to connect                                                 to socket /com/ubuntu/upstart: Connection refused
No command 'status:' found, did you mean:
 Command 'status' from package 'upstart' (main)
status:: command not found
dnsadmin@trm-linfs04:~$ serevice smbd status
No command 'serevice' found, did you mean:
 Command 'service' from package 'init-system-helpers' (main)
serevice: command not found
dnsadmin@trm-linfs04:~$ service smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2017-01-31 11:54:05 EST; 2min 21
     Docs: man:systemd-sysv-generator(8)
  Process: 12400 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE

Jan 31 11:54:05 trm-linfs04 systemd[1]: Starting LSB: start Samba SMB/CIFS daemo
Jan 31 11:54:05 trm-linfs04 smbd[12400]:  * Starting SMB/CIFS daemon smbd
Jan 31 11:54:05 trm-linfs04 smbd[12400]:    ...fail!
Jan 31 11:54:05 trm-linfs04 systemd[1]: smbd.service: Control process exited, co
Jan 31 11:54:05 trm-linfs04 systemd[1]: Failed to start LSB: start Samba SMB/CIF
Jan 31 11:54:05 trm-linfs04 systemd[1]: smbd.service: Unit entered failed state.
Jan 31 11:54:05 trm-linfs04 systemd[1]: smbd.service: Failed with result 'exit-c
lines 1-13/13 (END)
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2017-01-31 11:54:05 EST; 2min 21s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12400 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

有任何想法吗?

只想完全摆脱它并重新安装。

将使用 Webmin 1.831 进行管理。我显然不知道我在做什么。

任何帮助都会很重要。谢谢,Ubuntu 勇士!

server
  • 1 个回答
  • 5148 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve