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-257802

Time4Tea's questions

Martin Hope
Time4Tea
Asked: 2025-02-24 23:13:38 +0800 CST

找不到明显存在的可执行文件

  • 9

我正在尝试在 Pop OS 中运行 COMSOL 许可证管理器;但是,当我尝试运行时:

$ ./lmgrd -c ../license.dat -l /var/tmp/comsol55.log

我收到以下错误:

bash:./lmgrd:没有此文件或目录

该lmgrd文件显然存在于当前目录中。运行ldd lmgrd将产生以下输出:

linux-vdso.so.1 (0x00007acd5ec0d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007acd5ebf0000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007acd5eb09000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007acd5eae9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007acd5e800000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007acd5eae4000)
/lib64/ld-lsb-x86-64.so.3 => /lib64/ld-linux-x86-64.so.2 (0x00007acd5ec0f000)

这里的问题是缺少第一个依赖项吗?如果是,在 Pop OS 中添加该依赖项需要什么包?

dependencies
  • 1 个回答
  • 329 Views
Martin Hope
Time4Tea
Asked: 2024-04-28 01:57:41 +0800 CST

Tigervnc 服务器:我必须启动特定的“实例”吗?

  • 5

我正在尝试在 Pop! 上设置一个 TigerVNC 服务器。操作系统。当我尝试使用 systemd 启动服务器时sudo systemctl start tigervncserver@,出现以下错误:

无法启动[email protected]:单位名称 [email protected]缺少实例名称。有关详细信息,请参阅系统日志和“systemctl status [email protected] ”。

这似乎意味着我必须启动链接到特定显示器(即带有sudo systemctl start tigervncserver@:1)的服务器实例。但是,显示的数字不是与个人用户相关联吗?那么,该命令不是仅为一个特定用户启动 VNC 服务器吗?有没有什么方法可以启动“通用”VNC 服务器守护进程,以便为登录的用户启动 VNC 会话?

抱歉,也许我只是对它应该如何工作感到困惑。

vnc
  • 1 个回答
  • 14 Views
Martin Hope
Time4Tea
Asked: 2023-07-13 22:22:22 +0800 CST

新联想笔记本电脑上的 AMD 集成 GPU 出现问题

  • 5

我最近购买了一台新的 Lenovo Ideapad Slim 3 笔记本电脑,但在让 amdgpu 驱动程序在 Arch Linux 中正常工作时遇到问题。glxgearsGPU 似乎可以通过 Mint live USB(播放等)立即正常工作;但是,在 Arch 系统中,我尝试安装到 SSD,但出现以下错误glxinfo -B:

$ glxinfo -B
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  37
  Current serial number in output stream:  38

我在日志中看不到dmesg与 [drm] 和 amdgpu 相关的任何错误 - Arch 中的消息看起来与 Mint 中的消息非常相似。但是,在 Arch 中,我在文件中看到以下错误Xorg.0.log:

[    42.568] (II) Loading sub module "glamoregl"
[    42.568] (II) LoadModule: "glamoregl"
[    42.568] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    42.572] (II) Module glamoregl: vendor="X.Org Foundation"
[    42.572]    compiled for 1.21.1.8, module version = 1.0.1
[    42.572]    ABI class: X.Org ANSI C Emulation, version 0.4
[    42.577] (EE) AMDGPU(0): eglGetDisplay() failed
[    42.577] (EE) AMDGPU(0): glamor detected, failed to initialize EGL.
[    42.577] (WW) AMDGPU(0): amdgpu_glamor_pre_init returned FALSE, using ShadowFB

Mint live USB 的文件Xorg.0.log不会显示此错误:

[    17.992] (II) Loading sub module "glamoregl"
[    17.992] (II) LoadModule: "glamoregl"
[    17.992] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    17.995] (II) Module glamoregl: vendor="X.Org Foundation"
[    17.995]    compiled for 1.21.1.3, module version = 1.0.1
[    17.995]    ABI class: X.Org ANSI C Emulation, version 0.4
[    18.028] (II) AMDGPU(0): glamor X acceleration enabled on AMD RENOIR (LLVM 13.0.1, DRM 3.42, 5.15.0-56-generic)
[    18.028] (II) AMDGPU(0): glamor detected, initialising EGL layer.

该错误似乎与导致问题的原因有关。有谁知道是什么可能导致 amdgpu 和 Arch 中的魅力之间出现这个问题?

这是一款全新的笔记本电脑,配备 AMD Ryzen 5 7530U CPU,集成 Radeon 显卡。

arch-linux
  • 1 个回答
  • 32 Views
Martin Hope
Time4Tea
Asked: 2022-12-22 03:43:13 +0800 CST

大地址感知(LAA)如何在 Wine 中工作?

  • 7

任何人都可以阐明对 32 位应用程序的大地址感知 (LAA) 的支持在 Wine 中是如何工作的吗?

我知道在 Windows 中默认情况下,32 位应用程序被限制为最大 2GB RAM;但是,可以在可执行文件上设置 LAA 标志,以允许它最多使用 4GB。

我的理解是,默认情况下,Wine 尊重 32 位 Windows 应用程序的 2GB 限制,如果在 .exe 上设置了 LAA 标志,它将允许使用 4GB。但是,我听说还有一个全局选项可以为 Wine 设置为自动允许所有 32 位 Windows 应用程序使用 4GB - LARGE_ADDRESS_AWARE=1(或类似的东西?)。

有人可以澄清这是否是正确的环境变量吗?它在 vanilla Wine 中有效,还是仅在 Wine-staging 中有效?在 64 位 Wine 前缀中运行 32 位应用程序时是否也需要它?我以为有一个关于它的 Wine 用户指南页面,但我找不到它。

wine
  • 1 个回答
  • 87 Views
Martin Hope
Time4Tea
Asked: 2022-05-28 07:14:12 +0800 CST

Alsa 定序器问题 - 没有文件 /dev/snd/seq

  • 1

我的 Alsa 音序器似乎有问题。我正在使用抛物线(Arch 变体)并且我不使用 Pulseaudio,我直接使用 Alsa。我正在尝试通过具有 MIDI 音频的 Wine 玩游戏。我安装了流体合成器,它可以工作 - 我可以播放一个 MIDI 文件,听起来不错。但是,如果我启动流体合成服务器并运行aplaymidi -l,我会收到以下错误:

$ aplaymidi -l
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory

我没有/dev/snd/seq文件,这似乎是应该存在的,与 Alsa 音序器有关。有谁知道为什么该文件可能不存在以及我可以尝试哪些解决方案?

编辑:

为了回答评论中的问题,这里是/proc/config.gz处理序列器的部分的输出:

$ zgrep -A 5 -B 5 SEQUENCER /proc/config.gz
# CONFIG_SND_CTL_VALIDATION is not set
# CONFIG_SND_JACK_INJECTION_DEBUG is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_CTL_LED=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_SEQUENCER_OSS=m
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SEQ_MIDI_EVENT=m
CONFIG_SND_SEQ_MIDI=m
CONFIG_SND_SEQ_MIDI_EMUL=m
CONFIG_SND_SEQ_VIRMIDI=m

所以看起来Alsa音序器被编译为一个模块,我可能只需要加载那个模块。

alsa midi
  • 1 个回答
  • 305 Views
Martin Hope
Time4Tea
Asked: 2019-10-08 17:43:01 +0800 CST

无法从本地家庭网络访问 Apache 网络服务器

  • 3

我在运行 Trisquel 8(基于 Ubuntu)的台式机上运行 Apache Web 服务器。我想让我的本地网络上的其他机器/设备可以访问服务器,但我不知道如何。

当我尝试使用 Apache 服务器的本地 IP 地址从另一台设备连接时,我在浏览器中收到错误消息,例如:在 Mac 上的 Firefox 中,我收到“无法连接”。Firefox 无法在本地主机上建立与服务器的连接。'。如果我尝试在 Android 手机上使用 DuckDuckGo 浏览器进行连接,我会收到“网页不可用”。无法加载位于http://localhost/的网页,因为:net::ERR_CONNECTION_REFUSED'。

建议使用的答案之一是nmap查看哪些端口是打开的,它返回了以下结果:

$ nmap [LOCAL IP ADDRESS]

Starting Nmap 7.01 ( https://nmap.org ) at 2019-10-12 09:25 EDT
Nmap scan report for [LOCAL IP ADDRESS]
Host is up (0.00013s latency).
Not shown: 998 closed ports
PORT   STATE SERVICE
22/tcp open  ssh
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds

因此,它表明端口 80 对 http 开放。可能还值得一提的是,我可以从本地网络上的另一台机器 ping 机器,并且正如 nmap 输出所示,我为 ssh 打开了另一个端口。我已经在这台机器上 ssh 了几个月,而且效果很好。为此,我刚刚安装了 ssh-server,它几乎可以开箱即用。

那么,这是否意味着 Apache2 设置有问题(而不是 iptables/防火墙),因为 ssh 工作没有问题?

iptables的内容:

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http ctstate NEW,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

apache2.conf的内容:

# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#       /etc/apache2/
#       |-- apache2.conf
#       |       `--  ports.conf
#       |-- mods-enabled
#       |       |-- *.load
#       |       `-- *.conf
#       |-- conf-enabled
#       |       `-- *.conf
#       `-- sites-enabled
#               `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
#       Require local
#       Require ip 192.168.1
        Require all granted
</Directory>

#<Directory /srv/>
#       Options Indexes FollowSymLinks
#       AllowOverride None
#       Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
        Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

我需要AllowOverride Allunder/var/www因为我正在尝试运行 Wordpress 的实例,并且它需要能够写入 Apache 服务器。

Apache2 肯定正在运行,因为我可以使用本地计算机上的浏览器中的“localhost”访问 Web 内容。此外,systemctl status apache2显示它正在运行:

~$ systemctl status apache2
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Thu 2019-10-10 20:01:44 EDT; 5min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1562 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/apache2.service
           ├─1621 /usr/sbin/apache2 -k start
           ├─1624 /usr/sbin/apache2 -k start
           ├─1625 /usr/sbin/apache2 -k start
           ├─1626 /usr/sbin/apache2 -k start
           ├─1627 /usr/sbin/apache2 -k start
           ├─1628 /usr/sbin/apache2 -k start
           └─2102 /usr/sbin/apache2 -k start

Oct 10 20:01:42 lee-Desktop systemd[1]: Starting LSB: Apache2 web server...
Oct 10 20:01:42 lee-Desktop apache2[1562]:  * Starting Apache httpd web server apache2
Oct 10 20:01:43 lee-Desktop apache2[1562]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Oct 10 20:01:44 lee-Desktop apache2[1562]:  *
Oct 10 20:01:44 lee-Desktop systemd[1]: Started LSB: Apache2 web server.

正如评论中所建议的,我试过了netstat --inet -a | grep apache2,但它什么也没返回。显然,如果 apache2 正在运行,这是不寻常的,因为它应该在端口 80 上侦听。我运行netstat -plunt | grep :80并得到以下输出:

$ sudo netstat -plunt | grep :80
tcp6       0      0 :::80                   :::*                    LISTEN      1557/apache2    

这是否意味着 Apache 正在听,但没有听到任何声音?

就同​​样请求的虚拟主机配置而言,其中唯一的文件/etc/apache2/sites-enabled/是 000-default.conf,其内容为:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

我也尝试过运行tail -f /var/log/apache2/*.log,但是当我尝试从远程机器连接时,日志中没有任何内容。

那么,如何解决阻塞连接的问题?是否有任何日志可以启发我了解连接被拒绝的原因以及原因?

我尝试了 Jacob 在他的回答中提出的建议,但不幸的是它并没有解决问题。任何其他建议或指导将不胜感激!

networking
  • 6 个回答
  • 48419 Views
Martin Hope
Time4Tea
Asked: 2019-04-16 17:51:17 +0800 CST

如何设置 cmake 策略?

  • 8

我正在尝试为基于 ARM 的笔记本电脑编译 Paraview 图形可视化软件;但是,我收到了一些似乎与 cmake 'policies' 相关的配置警告。警告文本和 cmake 手册页表明我应该能够运行该命令cmake_policy()来设置特定策略;但是,我不知道如何或在哪里运行它。

如何设置特定的 cmake 策略?

cmake
  • 3 个回答
  • 9873 Views
Martin Hope
Time4Tea
Asked: 2019-01-11 09:38:35 +0800 CST

是否有 udev 内置的文档?

  • 12

udev 的手册页在几个地方提到某些规则选项可用于调用“内置”命令,这些命令显然是内置在 udev 程序本身中的。但是,我还没有找到任何可以清楚地解释 udev 内置函数可用的参考文档;他们做什么以及如何使用它们。

我在网上搜索过,但没有成功。有谁知道是否有任何地方提供有关这些内置命令的详细信息的参考?

udev documentation
  • 3 个回答
  • 2977 Views
Martin Hope
Time4Tea
Asked: 2018-06-21 05:21:38 +0800 CST

这真的是 DirectFB 的官方网站吗?

  • 1

DirectFB 源 tarball 中的 README 文档将官方网站列为www.directfb.org;但是,至少可以说,该站点似乎相当……奇怪。它开始谈论 Linux,但随后走向了一个相当令人不安的方向。我可以假设这不是 DirectFB 项目的正确网站(而不是开发人员只是一个怪人)吗?

如果是这样,有谁知道 DirectFB 是否有当前维护的站点?维基百科文章将其列为www.directfb.net;但是,这会导致 DNS 错误。

resources
  • 1 个回答
  • 371 Views
Martin Hope
Time4Tea
Asked: 2018-03-04 06:29:29 +0800 CST

为什么我需要 XDMCP 通过 SSH 启动远程 X 会话?

  • 3

我正在尝试设置远程桌面连接,以通过 wifi 从我的笔记本电脑(均运行 Trisquel)访问我的台式电脑。我已经尝试过 VNC,但速度非常慢,所以我正在寻找其他选择。我最理想的做法是通过 SSH 启动一个远程 X 会话,该会话将使用 X 转发在我的笔记本电脑(即 tty8)上的一个单独的 tty 上运行。看起来它应该是可能的,但我试图弄清楚它是如何工作的。

通过 SSH 隧道的 X 转发似乎适用于单个 X 应用程序,使用ssh -X. 我还可以使用以下命令(安装了 xinit)在 tty8 上启动一个新的本地 X 会话:

startx lxsession -- :1 tty8

所以,把两个和两个放在一起,我应该能够通过 SSH 连接启动远程会话,方法是在使用 SSH 登录到远程机器后键入以下命令,对吧?:

startx gnome-session -- :1 tty8

但不,它不起作用!我收到以下错误:

X: user not authorized to run the X server, aborting.

根据我的阅读,我似乎需要使用 XDMCP 和/或 X 嵌套来完成此操作。

所以,我的问题是:为什么有必要使用这些额外的包来做到这一点?我认为 X 应该具有网络透明性,在这种情况下,它为什么会知道/关心我尝试使用的 tty 是在本地机器上还是在远程机器上?XDMCP/X 嵌套给图片带来了什么,X 默认不包括?

我只是想弄清楚这一点并更好地理解它。

x11 xforwarding
  • 2 个回答
  • 5672 Views
Martin Hope
Time4Tea
Asked: 2018-02-19 08:18:53 +0800 CST

为什么我无法从命令行打开 gparted?

  • 2

我似乎无法从命令行启动 gparted。我正在使用带有 LXDE 的 Trisquel 8(基于 Ubuntu 16.04)。如果我尝试打开它,我会收到以下错误并且没有任何反应:

$ sudo gparted

(gpartedbin:7820): Gtk-WARNING **: cannot open display: 

但是,它似乎可以从图形应用程序菜单中正常打开。

我在网上搜索了一下,一个建议是尝试:

xhost +localhost

然而,这并没有帮助。显然,在 Wayland 中以 root 身份从命令行打开 gtk 应用程序似乎存在问题;但是,我使用的是 X11。这只是在本地笔记本电脑上 - 不涉及 ssh-ing 或远程系统。

看起来很奇怪,因为我过去一直都能从命令行打开gparted。我也尝试过重新安装 gparted ,但这似乎没有帮助。

更新:

按照 meuh 在评论中的建议,我添加DISPLAY=:0到 /etc/environment 文件中,所以在使用 sudo 时应该通过。但是,我仍然遇到错误,但它现在已更改:

$ sudo gparted
No protocol specified

(gpartedbin:5549): Gtk-WARNING **: cannot open display: :0

似乎现在正在传递 DISPLAY 变量,但我不确定“无协议”消息的含义。

x11 gparted
  • 2 个回答
  • 12341 Views
Martin Hope
Time4Tea
Asked: 2017-12-14 14:53:09 +0800 CST

amd64+mac ISO 有什么特别之处?

  • 2

除了常规的“amd64”ISO 之外,一些 GNU/Linux 发行版(例如 Ubuntu)还提供“amd64+mac”ISO。在某些 Apple Mac 上启动显然需要 amd64+mac ISO。我只是好奇 amd64+mac ISO 有什么不同?

另外(对于加分;-)),如果 amd64+mac ISO 只是在常规 ISO 中添加一些东西(从名称上看),为什么不简单地将所有 ISO 设为“amd64+mac”?

boot macintosh
  • 1 个回答
  • 551 Views
Martin Hope
Time4Tea
Asked: 2017-12-05 07:26:28 +0800 CST

如何修复我的 gnome 密钥环?

  • 1

我正在使用基于 Ubuntu 的 Trisquel 版本 7 (Belenos) 和 LXDE 桌面环境。它似乎在使用 gnome-keyring-daemon 来存储和记住密码;但是,它似乎无法正常工作。例如,当我打开 Evolution 邮件时,系统会提示我输入我的电子邮件/日历/地址簿密码,然后要求我提供一个“默认密钥环”的密码来存储它们。但是,“默认密钥环”似乎并没有持续存在 - 每次我开始 Evolution 时,我都会一次又一次地被问到相同的问题。

我阅读了 gnome-keyring-daemon 的手册页,但对解释它的工作原理没有多大帮助。有谁知道问题可能是什么?

编辑:

只是补充一下,我尝试删除然后重新安装 gnome 密钥环包,但问题仍然存在。我会尝试进行“完全删除”,看看是否有帮助,以防有一些损坏的配置文件挂在周围。

lxde gnome-keyring
  • 1 个回答
  • 2693 Views
Martin Hope
Time4Tea
Asked: 2017-12-03 15:04:30 +0800 CST

如何让我的帧缓冲控制台工作?

  • 2

我有一台运行我构建的 Linux From Scratch 系统的 Apple MacBook。这是一个最小的系统,只是启动到一个 bash 提示符,没有安装 X Window 系统。图形芯片是 Intel GMA 950,它使用 i915 驱动程序。以前,我让它启动到帧缓冲控制台;但是,前几天我调整了一些内核配置设置,现在帧缓冲区控制台似乎不再加载(尽管屏幕变黑然后在启动过程中重置)。

愚蠢的是,我没有为我正在工作的设置保存内核配置文件,尽管我确实打印了lsmod该设置的命令,其中显示了加载了哪些内核模块:

Module                  Size  Used by
ccm                    20480  6
hid_generic            16384  0
isight_firmware        16384  0
usbhid                 32768  0
i915                 1343488  1
i2c_algo_bit           16384  1 i915
arc4                   16384  2
fbcon                  49152  70
bitblit                16384  1 fbcon
fbcon_rotate           16384  1 bitblit
fbcon_ccw              16384  1 fbcon_rotate
fbcon_ud               20480  1 fbcon_rotate
fbcon_cw               16384  1 fbcon_rotate
softcursor             16384  4 fbcon_ud,fbcon_cw,fbcon_ccw,bitblit
drm_kms_helper        114688  1 i915
ath9k                  81920  0
cfbfillrect            16384  1 drm_kms_helper
ath9k_common           16384  1 ath9k
syscopyarea            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
ath9k_hw              389120  2 ath9k,ath9k_common
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
mac80211              405504  1 ath9k
fb_sys_fops            16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
drm                   282624  3 i915,drm_kms_helper
ath                    28672  3 ath9k_hw,ath9k,ath9k_common
pata_acpi              16384  0
intel_agp              16384  0
coretemp               16384  0
video                  36864  1 i915
uhci_hcd               40960  0
pcspkr                 16384  0
backlight              16384  2 video,i915
ehci_pci               16384  0
ehci_hcd               73728  1 ehci_pci
ata_piix               36864  0
rng_core               16384  0
intel_gtt              20480  2 intel_agp,i915
fb                     65536  8 fbcon_ud,fbcon_cw,fbcon_ccw,bitblit,softcursor,i915,fbcon,drm_kms_helper
agpgart                32768  3 intel_agp,intel_gtt,drm
evdev                  24576  0
fbdev                  16384  2 fb,fbcon
mac_hid                16384  0

因此,您可以看到fbcon(它是帧缓冲区控制台的驱动程序)已加载。

但是,lsmod较新的内核版本(未加载控制台)的输出如下:

Module                  Size  Used by
hid_generic            12288  0
arc4                   12288  2
i915                 1314816  0
usbhid                 28672  0
prime_numbers          12288  1 i915
i2c_algo_bit           12288  1 i915
drm_kms_helper         98304  1 i915
cfbfillrect            12288  1 drm_kms_helper
syscopyarea            12288  1 drm_kms_helper
cfbimgblt              12288  1 drm_kms_helper
pata_acpi              12288  0
sysfillrect            12288  1 drm_kms_helper
ath9k                  73728  0
ath9k_common           12288  1 ath9k
ath9k_hw              368640  2 ath9k,ath9k_common
sysimgblt              12288  1 drm_kms_helper
fb_sys_fops            12288  1 drm_kms_helper
cfbcopyarea            12288  1 drm_kms_helper
mac80211              356352  1 ath9k
coretemp               12288  0
ata_piix               32768  0
ath                    24576  3 ath9k_hw,ath9k,ath9k_common
drm                   241664  3 i915,drm_kms_helper
uhci_hcd               36864  0
video                  32768  1 i915
intel_agp              12288  0
pcspkr                 12288  0
intel_gtt              16384  2 intel_agp,i915
fb                     57344  2 i915,drm_kms_helper
ehci_pci               12288  0
ehci_hcd               65536  1 ehci_pci
agpgart                28672  3 intel_agp,intel_gtt,drm
rng_core               12288  0
fbdev                  12288  1 fb
backlight              12288  2 video,i915
evdev                  20480  0
mac_hid                12288  0

fb,fbdev,i915,drm,intel_agp都在那里,但fbcon不是。

有谁知道fbcon没有加载的可能原因?

编辑:(回答评论中的问题)

的输出grep CONFIG_FRAMEBUFFER_CONSOLE .config是:

$ grep CONFIG_FRAMEBUFFER_CONSOLE .config
CONFIG_FRAMEBUFFER_CONSOLE=m
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set

fbcon被配置为一个模块(就像在以前的设置中一样)。我相信第二行意味着它应该默认将 fbcon 设置为主显示设备。

更新:

我手动加载了模块,使用modprobe fbcon它并且它工作 - 所有文本都出现在屏幕上。我仍然需要弄清楚为什么它没有在启动时加载,以及如何让它做到这一点。

另外,我跑cat $(readlink -f /sys/class/graphics/fb0/name)并打印了inteldrmfb. 因此,它似乎正在使用内置于 i915 Intel 驱动程序的帧缓冲区。

linux-kernel console
  • 1 个回答
  • 11995 Views
Martin Hope
Time4Tea
Asked: 2017-12-02 12:35:28 +0800 CST

对于没有 X 的最小 CLI 系统,我是否需要帧缓冲驱动程序?

  • 1

我最近在我的 Apple Macbook 笔记本电脑上构建了一个 Linux From Scratch 系统;但是,我一直在努力了解图形硬件以及我需要启用哪些内核驱动程序选项。

LFS 系统(目前)是一个相当小的系统,可以启动到 Bash,但没有 X Window 系统或任何 DE。笔记本电脑是 Macbook 2,1,包括 Intel GMA 950 图形芯片。我在内核中启用了我认为适合此 GPU 的驱动程序,即 i915 驱动程序;但是,除非我还启用了与“帧缓冲设备”相关的一些其他选项(我尚未确定确切的配置选项),否则在启动期间屏幕上不会打印任何内容(尽管,屏幕会更改为不同的黑色阴影几次)。

有人可以解释这里发生了什么吗?如果那个 i915 驱动程序是 GPU 的正确驱动程序,那么这还不足以让系统将终端输出打印到屏幕上吗?如果没有,那么除了 i915 驱动程序之外,我还需要什么?

我还在同一台笔记本电脑上安装了 Trisquel,它可以很好地启动到 LXDE 环境,根据lsmod,i915 驱动程序是正确的,内核似乎没有加载任何与帧缓冲区相关的驱动程序。

我很困惑!

drivers gpu
  • 1 个回答
  • 510 Views

Sidebar

Stats

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

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve